October 23, 2002

Tip: Traversing an XML document with a TreeWalker

Now on IBM developerWorks: Tip: Traversing an XML document with a TreeWalker -- XML's Document Object Model provides objects and methods that enable a developer to navigate a document's tree, but typically the process involves NodeLists and recursive methods that make it easy to get lost within the structure. The DOM Level 2 Traversal module provides a new object, the TreeWalker, which simplifies this process and makes navigation more reliable. This tip demonstrates the process of determining whether a TreeWalker is available and how to use it to extract information from a document.

Technorati tags:

Posted by roadnick at October 23, 2002 09:44 AM | TrackBack

Comments

Post a comment









Remember personal info?