SAX gives you serial access to an XML document and that's it. If you want to access the XML document's structure, you'll need to code the necessary facilities yourself (or use another API such as DOM).
With SAX processing, your program needs to be "aware" of the most recent events in order to decide what to do. For example - if you get the startElement event for Element "A", you are "in" element A until you get the endElement event for "A". So - any startElement event you get while "in" A will be start of a child element of "A". Bill
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop