I am writing a program in Java where I have to traverse through nodes and return the output value of an attribute of XML string.
How do I traverse through the path to get a attribute value in Java.
I am writing a program in Java where I have to traverse through nodes and return the output value of an attribute of XML string.
How do I traverse through the path to get a attribute value in Java.
Try this here:
https://docs.oracle.com/javase/tutorial/jaxp/dom/readingXML.html
at
Node Operations - Traversing nodes