Appending a Doctype node using Microsoft's XML COM interfaces

Robin Dahlstedt Robin_Dahlstedt at
Wed Dec 22 01:41:33 GMT 1999

>Im building an XML document in C++ using the COM interfaces provided by
>Microsoft. Does anybody know of a way to append the DOCTYPE 
>declaration to the xml file? I believe that Microsoft purposefully left
>ability out.

And well they should, since the doctype attribute is read-only.


where it purposefully states:
"The DOM Level 1 does not support editing the Document Type Declaration, 
therefore docType cannot be altered in any way."


Is my only option to manually open the file and put the DOCTYPE declaration
in it!?

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list