W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: guidance needed

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Tue, 29 May 2001 11:01:56 -0400
To: <www-dom@w3.org>
Message-ID: <OFC4DCD5DC.20559D51-ON85256A5B.0052275A@pok.ibm.com>

Most XML parsers come with some sample programs. Have you tried looking at

The DOM provides a structured view of your document, but you have to walk
through that view yourself to obtain the data. There are some tools which
can help simplify this process -- the getElementsByNodeNames() method, the
NodeIterator/TreeWalker added in DOM Level 3, which can help you jump to
the points you're interested in.

To retrieve the contents of an element, even when those contents are just
text, you must examine the children of that element.

That should get you started in the right direction...

Joe Kesselman  / IBM Research
Received on Wednesday, 30 May 2001 03:00:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC