How to iterate in xml data using XmlDocument class

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
suppose my sample xml is

<?xml version="1.0" encoding="utf-8"?>
<root>
<Folder>
<path>C:\Users\bsushil\Documents\Sharpdesk Desktop\Tinki</path>
<name>Tinkiiiii</name>
</Folder>
<Folder>
<path>C:\Users\bsushil\Documents\Sharpdesk Desktop\Tinki\New folder</path>
<name>New folder</name>
</Folder>
<Folder>
<path>C:\Users\bsushil\Documents\Sharpdesk Desktop\Tinki\New folder (1)</path>
<name>New folder (1)</name>
</Folder>
</root>

now tell me how could i iterate in xml data for path and name ?


i found few good sample url

How to loop through certain XML Nodes
[Solved] How to iterate XML file using C# - CodeProject
How to iterate through every node in xml? - Unity Answers
XML - Loop through nodes via C#
Loop through XmlNodeList with C#
Iterating through all nodes in XML file

Continue reading...
 
Back
Top