Best method to parse xml content in VS 2005?

P

polaris431

I am new to VS 2005 although I have years of experience with the
previous versions of VS. Without having to spend a lot of time diving
into the docs, can someone tell me the easiest way to parse xml
content? In the past I used the DOM object model and XPath. Perhaps
things have improved in VS 2005 and something else has replaced the
need for DOM. Basically, I just want to get at a node and read out the
contents although there can be multiple nodes of the same parent.
 
M

Marc Gravell

There is an XPathDocument if you need read-only access; it is meant to be a
bit more optimised (i.e. doesn't need as many class instances as the DOM).

Alternatively, perhaps an XmlReader directly? Much harder to work with, but
very efficient.

Marc
 

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

Top