publicID is the second parameter to
DOM_DOMImplementation::createDocumentType() (see
http://xml.apache.org/xerces-c/apiDocs/class_DOM_DOMImplementation.html#a4).
You create a document type, then pass it to
DOM_DOMImplementation::createDocument(), using something like the following,
which creates an XHTML 1.0 Transitional document:
DOM_DOMImplementation impl;
DOM_DocumentType docType = impl.createDocumentType("html",
"-//W3C//DTD XHTML 1.0
Transitional//EN",
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd");
DOM_Document doc = impl.createDocument(NULL, // root element namespace
URI
"html", // root element name
docType); // document type object
(DTD)
-----Original Message-----
From: Lihong Pei [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 7:52 PM
To: [EMAIL PROTECTED]
Subject: How to setPublicId for DocType using DOM API?
Does anyone knows how to set public id for DocType when writing an xml file
using DOM API? I checked with the API documentation and the disscussion
group
with no luck.
Could you please help me if you know about it?
Thanks a lot in advance!
Lihong
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]