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.

Posted by roadnick at 09:44 AM | Comments () | TrackBack

Understanding XForms

Now on IBM's developerWorks: Understanding XForms (Tutorial) -- Today's Web applications require sophisticated control over a form's presentation and over the data that is ultimately submitted. XForms, currently at the level of Candidate Recommendation status at the W3C, aims to satisfy those needs, including separating functionality from presentation and streamlining validation and events processing.

Posted by roadnick at 12:20 AM | TrackBack

October 18, 2002

Tip: Use a SAX filter to manipulate data

Now on IBM developerWorks: Tip: Use a SAX filter to manipulate data -- The streaming nature of the Simple API for XML (SAX) provides not only an opportunity to process large amounts of data in a short time, but also the ability to insert changes into the stream that implements business rules without affecting the underlying application. This tip explains how to create and use a SAX filter to control how data is processed.

Posted by roadnick at 09:45 AM | Comments () | TrackBack