xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Hodges" <eric.hod...@mongoosetech.com>
Subject FW: Yet another question about creating a Document
Date Wed, 18 Oct 2000 18:37:39 GMT


-----Original Message-----
From: Eric Hodges [mailto:eric.hodges@mongoosetech.com]
Sent: Wednesday, October 18, 2000 12:16 PM
To: xerces-j-dev@xml.apache.org
Subject: Yet another question about creating a Document


After I call DOMImplementation.createDocument(null, "test", docType), the
resulting document already has a docElement.  It's an Element with the name
"test" in it.  Since Documents can't have more than one docElement, I can't
add any elements to the new Document.

How do I make a document and specify the document type??  Anyone have any
examples?


Mime
View raw message