Thank you.
But if my xml has the following structure:
******************************
<root>
<aaa>
<info>aaa information</info>
<bbb>
<info>bbb information</info>
</bbb>
</aaa>
</root>
*********************************
then this code returns: "bbb information"
NodeList infoNodeList = doc.getElementsByTagName("info");
Element info = (Element) infoNodeList.item(1);
Text text = (Text) info.getFirstChild();
String aaaInformation = text.getNodeValue();
How can I get data from "/root/aaa/info" not from "/root/aaa/bbb/info" using DOM Api?
regards,
Andrew Sljusar