Groups | Blog | Home
all groups > dotnet xml > march 2004 >

dotnet xml : XML Root


Matt Frame
3/17/2004 9:33:10 AM
What is the best method to set the XML root using ExecuteXmlReader when I
use either a stored procedure that returns XML or command text using FOR
XML?

Thanks,

Matt

Matt Frame
3/17/2004 12:21:20 PM
Oleg,

Okay call me stupid, but I can't find any references to the SqlXmlCommand
object in the .Net documentation. I am using .Net 1.1 and VS.Net 2003. I
did a word search in the .Net studio and came up with no hits. I had seen
sample using that property and this is why I posted the question. Is this
in some special reference that needs to be done and not part of the .Net
Framework?

Thanks,

Matt
[quoted text, click to view]

Oleg Tkachenko [MVP]
3/17/2004 4:54:23 PM
[quoted text, click to view]

You can use SqlXmlCommand instead of SqlCommand. SqlXmlCommand has handy
RootTag property.
--
Oleg Tkachenko [XML MVP, XmlInsider]
Oleg Tkachenko [MVP]
3/17/2004 8:02:11 PM
[quoted text, click to view]

Ooops, sorry. That's from SQLXML managed classes. Take a look at
http://msdn.microsoft.com/sqlxml

--
Oleg Tkachenko [XML MVP, XmlInsider]
AddThis Social Bookmark Button