----- Original Message -----
From: "Arnaud Le Hors" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[email protected]>; <[email protected]>
Sent: Monday, October 16, 2000 8:51 PM
Subject: Re: Question about document type nodes and JAXP


> In DOM Level 2, you first need to create the doctype node with
> DOMImplementation.createDocumentType() and then create the document node
> with DOMImplementation.createDocument() to which you pass the doctype.
> You can't change the doctype afterwards.

Wow, that's a serious limitation.  I'm trying rebuild an XML document from a
database (and also rebuild them from serialized objects).  I usually don't
know the document type until sometime after I've created the document.

I guess I'll have to use some sort of lazy construction.  Why is DOM so
screwy?


Reply via email to