Hi Jake, Jacob Kjome <[EMAIL PROTECTED]> wrote on 07/22/2006 08:08:22 PM:
> > I noticed in the note for the document-class-name property that "When > the document class name is set to a value other than the name of the > default document factory, the deferred node expansion feature does > not work." Does this mean that Xerces checks specifically for the > class "org.apache.xerces.dom.DocumentImpl" in order to enable > deferred node expansion, or can a custom DOM implementation extend > from said class and still have node expansion enabled? Setting the document-class-name property to any other value than "org.apache.xerces.dom.DocumentImpl" will disable deferred node expansion. The only deferred DOM implementation Xerces knows how to handle is its own. It directly extends the non-deferred implementation (DocumentImpl) and is built using its internal methods. There's no mechanism for plugging in a different one. > For instance, is deferred node expansion disabled if the > document-class-name is HTMLDocumentImpl? The HTML DOM is on another branch of the class hierarchy (see below) and isn't capable of deferred node expansion. CoreDocumentImpl | |__DocumentImpl | |__DeferredDocumentImpl | |__HTMLDocumentImpl | |__PSVIDocumentImpl | |__WMLDocumentImpl > I'm hoping it would work in either case or, more > generally, in any case where the custom DOM extends DocumentImpl. > > Also, if anyone on the Xerces team knows anything about XMLC's > LazyDOM, is the deferred node expansion feature equivalent to LazyDOM > or is it something a bit different? Xerces' deferred DOM creates nodes as they are accessed from a table representation which is constructed when the document is parsed. I've never heard of the XMLC LazyDOM so I don't know how that compares to it. > > thanks, > > Jake > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]