Solved

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

Posted on 2009-04-07
2
1,218 Views
Last Modified: 2013-11-08
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
Comment
Question by:lapucca
2 Comments
 
LVL 15

Accepted Solution

by:
spprivate earned 500 total points
ID: 24090728
You can use xpath.
Here is an example in previous version of .net

http://www.codeproject.com/KB/cpp/myXPath.aspx
0
 

Author Comment

by:lapucca
ID: 24091148
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

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question