easy XML question

G

Guest

I'm not experienced with the XML parsing capabilities of the .NET CLR. If I
have a simple fragment (not an entire document) which looks like so:

<element attribute1="foo" attribute 2="foo2" ... >
<possibleSubElement attribute1="foodoo" />
</element>

where the sub elements may or may not exist, what is the simplest way to
gain access to a) the attributes of the top level element and b) the sub
elements and their attributes? I tried using XmlTextReader but it seems as
though that would be overkill. Do I really need a context and namespace
manager to read something this simple?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top