XML Traversing using Navigator and Iterator classe
hi,
i have a problem here traversing in XML document. i'm trying to use XPathNavigator class, and all i'm trying to do is to print each node's name and its text. can anyone please help me how to do it with Iterator class and navigator class ?
thanx in advance.
-jasim
following is a sample xml file.
<?xml version='1.0'?>
<bookstore>
<book>
First
</book>
<title>XML 1</title>
<name>Writer 1</name>
<price>100</price>
<book>
second
</book>
<title>XML 2</title>
<name>Writer 2</name>
<price>200</price>
<book>
third
</book>
<title>XML 3</title>
<name>Writer 3</name>
<price>300</price>
</bookstore>
|