Getting nodename and value
843834Feb 22 2005 — edited Feb 22 2005I have a xml file like this:
<root>
<topic id="34">
<p>Hello <b>World</b>
</topic>
[......]
</root>
I want to get all topic nodes, save the node value of topic (<p>Hello <b>World</b>) to a String. So I can print out it in HTML. Here is where Im standing right now
NodeList nodelist = doc.getElementsByTagName("topic");
But I cant manege to get all values (nodenames and values of children to topic). Need help thx.