I have a XML file as follows.
<listings>
<list>
<fruitlist>
<name>Apple </name>
<price>1$ </price>
</fruitlist>
<vegelist>
<vegename>Tomato</vegename>
<cost>2$</cost>
<vegelist>
</list>
<list>
<fruitlist>
<name>Orange </name>
<price>1$ </price>
</fruitlist>
<vegelist>
<vegename>Potato</vegename>
<cost>2$</cost>
<vegelist>
</list>
</listings>
how to parse the entire file which has multiple child nodes contineously in javascript.
No comments:
Post a Comment