RE: Newbie's question -- extracting information from XML file

2004-06-04 Thread Erik Rydgren
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

Re: Newbie's question -- extracting information from XML file

2004-06-03 Thread Nick Bastin
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