Re: How to search a XML document node by node

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



XmlDocument doc = new XmlDocument();

doc.LoadXml(YourXMLStringHere);

XPathNavigator xpnav = doc.CreateNavigator();

XPathNodeIterator iterator = null;

iterator.MoveNext(); //Loop here

"Omkar Singh" <OmkarSingh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0A4B9355-ABB8-4BBD-BE21-D74299E5C90B@xxxxxxxxxxxxxxxx
>I have want to read a xml file node by node. How can I do it?
> I am using following code to load xml file.
>
> XmlDocument doc = new XmlDocument();
> doc.Load(fileName);


.



Relevant Pages

  • Re: XML and .NET 1.1
    ... I want to save this string to a eventually already existing XML file. ... XmlDocument doc = new XmlDocument; ... Martin Honnen --- MVP XML ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: File Version
    ... > Hi Dennis, ... > The reason I suggest XML file is because XML file provide well-formed ... > structure for storing and representing data and the classes under ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: config file changes
    ... I am just changing the node of the xml file. ... the changes to the config file through this code, ... XmlDocument doc = loadConfigDocument; ... XmlElement elem = ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Parse a tagged value string
    ... stuff out of an XML file. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... XmlDocument doc = new XmlDocument; ...
    (microsoft.public.dotnet.languages.csharp)
  • Possible Text Encoding Question
    ... I've seen something that confuses me a bit, ... I have an XML file as an embedded resource in a C# Windows Forms ... Stream resStream = a.GetManifestResourceStream; ... XmlDocument doc = new XmlDocument; ...
    (microsoft.public.dotnet.languages.csharp)