Re: ANN: DOMParser

Bill la Forge (b.laforge@jxml.com)
Fri, 18 Sep 1998 08:56:58 -0400


I had the same problem. I ended up extending document with
a reference to context. (Context is null when parsing is complete.)

Context then allows access to locator and a few other things specific
to coins. One driving issue for me was that an element needed to
throw a SAXParseException at endElement time and needed
access to the locator to be able to identify the element where the
error occurs.

Bill

-----Original Message-----
From: Michael Kay <M.H.Kay@eng.icl.co.uk>
>One thing I needed to do in SAXON was to allow the SAX
>application to get a reference to the DOM element currently
>being processed; I did this by subclassing the SAX Locator
>class. Does DOMParser provide anything comparable?