Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Development Tools
 ASP.NET
 XQuery in C#
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 12/22/2006 :  14:32:51  Show Profile  Reply with Quote
Guys,

I recently started programming in C#. I then faced a need to work with XML documents. That is, query them.

Initially I used XPath. For simple selects it works fine. However, I need to do sub-quering and could not figure out how to do it using XPath. I then decided to try out XQuery. However, I cannot find a single source describing how to use XQuery in C# .Net (googling brings about irrelevant topics).

Any suggestion is appreciated.


Thank you

P.S. I need to do something like this using XQuery:

SELECT a
FROM b
WHERE c IN
(
SELECT c FROM d WHERE e = f
)

snSQL
Flowing Fount of Yak Knowledge

USA
1837 Posts

Posted - 12/22/2006 :  15:29:10  Show Profile  Reply with Quote
I cannot find a single source describing how to use XQuery in C# .Net
That's because it isn't there
http://msdn.microsoft.com/xml/xquerystatus/default.aspx

I haven't tried Saxon myself, but it is probably your best bet until MS puts XQuery back into the Framework
http://saxon.sourceforge.net/

Edited by - snSQL on 12/22/2006 15:29:33
Go to Top of Page

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 12/22/2006 :  15:42:24  Show Profile  Reply with Quote
Hmm ... thanks a lot for the info ...
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000