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

dotnet xml : Locate XML Root - Easy way?


Rich Wallace
6/4/2004 11:03:18 AM
Hi all,

My application accepts an XML document via MSMQ....The first thing I need to
do is figure out what the name of the root element is..is there a fairly
easy way to do this using XmlTextReader or XPath?

TIA
-Rich

tMan
6/4/2004 4:46:04 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cscon/html/vclrfCodeReadingXMLFromFileVisualC.as

----- Rich Wallace wrote: ----

Hi all

My application accepts an XML document via MSMQ....The first thing I need t
do is figure out what the name of the root element is..is there a fairl
easy way to do this using XmlTextReader or XPath

TI
-Ric


Brian Staff
6/4/2004 5:11:32 PM
Rich,

xmlObject.documentElement.nodeName

Brian
AddThis Social Bookmark Button