The official DOM answer is "create the DocumentType first, then use it when
creating the Document node." This is because some DOM implementations may
specialize themselves differently depending on what kind of document
they're processing.

Some (not all!) DOMs will also permit you to simply add the DocumentType
node as a child of Document, if one doesn't already exist. But that isn't
promised, and I'm not sure whether Xerces supports it these days.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to