473,465 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Locate XML Root - Easy way?

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
Nov 12 '05 #1
4 1280
http://msdn.microsoft.com/library/de...FileVisualC.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

Nov 12 '05 #2
http://msdn.microsoft.com/library/de...FileVisualC.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

Nov 12 '05 #3
Rich,

xmlObject.documentElement.nodeName

Brian

Nov 12 '05 #4
Rich,

xmlObject.documentElement.nodeName

Brian

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JVarsoke | last post by:
I'm trying to use pgpenvelope and I keep getting the message: Can't locate loadable object for module String::Approx in @INC (@INC contains: /usr/lib/perl5/5.8.0/i586-linux-thread-multi . . . ...
0
by: Rich Wallace | last post by:
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...
2
by: EO | last post by:
I have much of what I need, but would appreciate a sanity check and I have some hopefully easy questions. (Easy for YOU, that is!) I have a website with about 2000 pages to convert to .net....
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
0
by: sp1dEr | last post by:
Hi all, I have an asp.net application (framework 1.1 sp1) on windows server 2003. When the document root is locate in local that's all ok... but if the document root is locate on locate on...
7
by: mwt | last post by:
Is there a function in python that does what "locate" does in a bash shell? I know I could do it by using os.popen('locate'), but I'm curious if there's a Python "native" way to go about it....
1
by: bizt | last post by:
Hi, I have an XML document that, at some points, nodes are about several levels deep. For example: <?xml... <root> <node>
16
by: TT (Tom Tempelaere) | last post by:
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument...
1
jhardman
by: jhardman | last post by:
I'm working with my first real xbap project, and I have run into a real wall. Although my project runs just fine when debugging and I get no error while building, immediately as the publish finishes...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.