Arno Schatz wrote: > I am actually using this approach for attaching userdata. However the class > org.apache.xerces.parsers.DOMParser does not have the methods getFilter and > setFilter to > actually register the filter. > I had to subclass DOMParser and copy those two methods from > DOMBuilderImpl. The functionality for DOMBuilderFilter itself is located in > AbstractDOMParser. So I was just wondering why AbstractDOMParser does not provide > those > get/set methods.
The DOMBuilderFilter is part of the DOM L3 Load and Save specification. The Xerces implementation of DOM L3 does not support deferred DOM. If setting of the filter is done directly on the AbstractDOMParser nothing would prevent users from calling setFilter method on the DOMParser (which by default uses deferred DOM implementation), in the result we would probably get dozen bug reports complaining that Xerces does not call *registered* DOM filter. To avoid all this hassle the DOM L3 information is provided in one class, the DOMBuilderImpl, and this is the class you should extend. Thank you, -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
