I have an XML document like this:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<user>
<name>John</name>
</user>
<company>
<name>MyCompany></name>
</company>
</root>
I need to extract the value "MyCompany" (as a String value) from node, and I don't know how to locate it. I don't need the other elements from the document. I extracted from the xml file the org.w3c.dom.Document instance.