Your XML file actually looks like this in a DOM tree.
Relation - ELEMENTNODE
Whitespace - TEXTNODE
Subtype - ELEMENTNODE
Whitespace - TEXTNODE
The endlines in your document is stored inside the DOM tree as well. You
can filter them out using a DOMTreeWalker.
Regards
/ Erik
> -Original
On Jun 3, 2004, at 11:02 AM, Song Li wrote:
Hi,
I have an XML file with the format looks like:
===
===
I want to extract the "value" under the node "subtype" by using DOM,
I've tried two methods but neither return a c