posted 18 years ago
Have a look at the API documentation for org.w3c.dom.Node and you will see a table that tells you what to expect as "name" and "value" for every type of node. You'll see, for example, that an Element node has a name (what you would expect) but it doesn't have a value.
What you have in your example XML is a bunch of Elements, and some of them have Text nodes as children. Don't expect that asking for the value of an Element will return the value of one or any or all of its child nodes. If you want the value of the Text node that's a child of an Element node, you have to write the code to get the Text node and ask for its value.