B
Brian Terry
I am new in Java. And asking for help.
The problem is to parse the XML doc and search the parse tree for the
value and then print path to it.
For instance:
XML document:
<1>
<2>
<3>value1</3>
<4>value2</4>
</2>
</1>
c:\ java XMLParser doc.xml value1
path is: 1 -> 2 -> 3
c:\ java XMLParser doc.xml value2
The path is: 1 -> 2 -> 4
Have any ideas?
Thanks for attention
The problem is to parse the XML doc and search the parse tree for the
value and then print path to it.
For instance:
XML document:
<1>
<2>
<3>value1</3>
<4>value2</4>
</2>
</1>
c:\ java XMLParser doc.xml value1
path is: 1 -> 2 -> 3
c:\ java XMLParser doc.xml value2
The path is: 1 -> 2 -> 4
Have any ideas?
Thanks for attention