SAX -- Simple API for XML

Construct document tree from SAX events

Do the following:

  1. Add to your "application" a class that you will use to represent each element in an XML document.
  2. Add to your SAX content handler, the ability to create a tree of instances of your new class that represents the structure and content of the XML document.
  3. Implement a function that walks the tree and "annotates" it, for example, add an instance variable that gives the number of characters in the character content of this node/element.
  4. Display the tree.

What you will learn:

Additional information