I'm afraid you can't. That is the main difference between SAX and DOM parsing - the ability to
participate in the parsing process while the parser steps through the document by plugging in application handlers. DOM doesn't let you do that. It simply parses the document in its own little universe before giving you the document object.
IMO, these differences are actually the
features of the two ways of parsing. If you want interactive parsing, chose SAX. If your requirement is to be able to easily manipulate the XML document, use DOM.
------------------
Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.