Ali Manji wrote: > how do I pass into the DocumentImpl class that I have extended, say > MyDocument, the Document that I have parsed.
This is not how it works. Instead you need to tell the DOM parser what DOM implementation to use during the parsing by setting the following property [1]: parser.setProperty ("http://apache.org/xml/properties/dom/document-class-name", "MyDocument"); Note MyDocument must implement org.w3c.dom.Document interface providing all necessary methods for creating a DOM tree. You can choose to extend Xerces DOM implementation (org.apache.xerces.dom.CoreDocumentImpl, org.apache.xerces.dom.DocumentImpl, org.apache.xerces.dom.PSVIDocumentImpl) to overwrite some factory methods methods. [1] http://xml.apache.org/xerces2-j/properties.html -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]