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

 All Forums
 Development Tools
 ASP.NET
 XQuery in C#

Author  Topic 

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2006-12-22 : 14:32:51
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
Master Smack Fu Yak Hacker

1837 Posts

Posted - 2006-12-22 : 15:29:10
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/
Go to Top of Page

sql_er
Constraint Violating Yak Guru

267 Posts

Posted - 2006-12-22 : 15:42:24
Hmm ... thanks a lot for the info ...
Go to Top of Page
   

- Advertisement -