To set the docType, you have to do something like:
DOM_Document doc;
DOM_DOMImplementation impl;
DOM_DocumentType docType = impl.createDocumentType(...);
doc = impl.createDocument(NULL, // root element namespace
URI
"MyRoot" // root element name
docType); // document type object (DTD)
As for the XML declaration, try getting the document element with
getDocumentElement() and using insertBefore() to prepend your XMLDecl.
This approach worked for me, but I haven't upgraded since 1.2, so something
may have changed. My serializer is also descended a few generations from
DOMPrint, so it may be that I did something to it as well.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]