xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Hodges <harmo...@swbell.net>
Subject RE: Yet another question about creating a Document
Date Thu, 19 Oct 2000 16:22:00 GMT
Can anyone tell me why DOMImplementation.createDocument() creates an element
in the Document?  I can work around it by removing the element every time I
call this, but it makes me think I'm not using it correctly.


>
> 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?
>
>
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
>


Mime
View raw message