Appending a Doctype node using Microsoft's XML COM interfaces
Britt, James
james.britt at rez.com
Tue Dec 21 21:06:33 GMT 1999
>-----Original Message-----
>From: Robin Dahlstedt [mailto:Robin_Dahlstedt at pml.com]
>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? Ive tried to get around the problem by creating
>an element
>with the tagname "!DOCTYPE", but apparently, the boys and girls down at
>Microsoft already thought of that (ie: it didn't work). From
>the looks of
>things, I believe that Microsoft purposefully left this
>ability out...help!
And well they should, since the doctype attribute is read-only.
See http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#i-Document
where it purposefully states:
"The DOM Level 1 does not support editing the Document Type Declaration,
therefore docType cannot be altered in any way."
James
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list