Solved

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

Posted on 2009-04-07
2
1,243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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