• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1267
  • Last Modified:

What's the best way to parse a XmlDocument.InnerXml?

Hi, I'm using VS 2008 and .net 3.5.
How do I best parse out different node value inside a XmlDocument.InnerXml, which I beleive is a string value?  Or, would it better to parse using a XmlDocument object instead of a string object?  And please show a sample code on how I can do this if parsing the String object of XmlDocument.InnerXml.  Thank you.
0
lapucca
Asked:
lapucca
1 Solution
 
spprivateCommented:
You can use xpath.
Here is an example in previous version of .net

http://www.codeproject.com/KB/cpp/myXPath.aspx
0
 
lapuccaAuthor Commented:
Hi Thanks for the link to the example.  However, that is using a xml file to read in.  In my class, I have a input parameter that is a string which is the result from "return xmldoc.InnerXml;" ,  It's a string from a xmlDocument.InnerXml.  How can I start parsing this with xpath?  Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now