I'm still trying to add a DocumentType from to a Document. I'm using DocumentImpl.createDocumentType(name, publicId, systemId) to create the new DocumentType. When I call Document.importNode(docType, true) I get a run time error (NullPointerException) because DocumentImpl asks the DocumentType for it's owner document. It doesn't have one and there's no test to see if it succeeded.
Please help. > -----Original Message----- > From: Eric Hodges [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2000 2:30 PM > To: xerces-j-dev@xml.apache.org; [EMAIL PROTECTED]; > general@xml.apache.org > Subject: Question about document type nodes and JAXP > > > I need to duplicate XML documents. I'm using Xerces, going > through the JAXP > interface. I can't find any way to copy the document type node from one > document to a new one. What are other people doing in this > situation, or is > there a suggested way to do it? > > Thanks. > > > --------------------------------------------------------------------- > In case of troubles, e-mail: [EMAIL PROTECTED] > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >