Hi, In the JAXP sense the DOMParser is just an implementation detail, one which we may change in the future. I doubt that's something we would want to start exposing. In general you should avoid extending Xerces' implementation classes. They could be altered or removed at any time, possibly breaking your code when you move to a new release. If you want to add user data to the DOM as it's being built, I recommend that you use an LSParser [1] instead and register an LSParserFilter [2] with it which attaches the user data to the nodes as it receives them.
Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/LSParser.html [2] http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/LSParserFilter.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] johndoe Doe <[EMAIL PROTECTED]> wrote on 06/09/2007 03:58:16 PM: > It is currently not possible to extend existing > org.apache.xerces.jaxp.DocumentBuilderImpl so as to > use an implementation that extends > org.apache.xerces.parsers.DOMParser. (Package scoped > constructors and "new DOMParsers()" in the > newDocumentInstance() method) > > It is possible to extend DOMParser to add special user > data for nodes typically by extending startElement and > endElement. However, it is not trivial to incorporate > this extended DOMParser for JAXP use. > > Can you please suggest an appropriate mechanism so > that this custom DOMParser can be easily used in a > typical JAXP sense. > > - One idea would be to have a > org.apache.xerces.jaxp.DocumentBuilderImpl that looks > at a property that provides a classname that is > org.apache.xerces.parsers.DOMParser or a class that > extends org.apache.xerces.parsers.DOMParser. > > ____________________________________________________________________________________ > Shape Yahoo! in your own image. Join our Network Research Panel today! > http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]