ANN: DOMParser

Bill la Forge b.laforge at jxml.com
Fri Sep 18 14:59:24 BST 1998


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 at 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?



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list