Good catch.  I will be adding a new DOM_DocumentType constructor to fix
that.  In the mean time, if you need to pass a NULL DOM_DocumentType you can
do it as below:

myImplementation.createDocument(NULL, myQualifiedName, DOM_DocumentType());


Chih-Hsiang Chou
IBM Center for Java Technology - Silicon Valley
[EMAIL PROTECTED]

----- Original Message -----
From: "Richard Lanyon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 08, 2000 5:38 AM
Subject: Xerces-C DOM document constructor



According to the DOM spec, and to the Xerces docs,
DOM_DOMImplementation::createDocument() should be callable as follows:

myImplementation.createDocument(NULL, myQualifiedName, NULL)

where the two NULLs are the document's Namespace URI and the
document's DTD, respectively. However, while Xerces-C (1.1.0
precompiled Linux version) appears happy to create a document using a
NULL Namespace, using a NULL DTD doesn't work. This appears to be down
to the lack of an appropriate DOM_DocumentType constructor, because I
get the following error:

`DOM_DocumentType::DOM_DocumentType(DocumentTypeImpl *)' is protected

Should this be happening?

--
Richard Lanyon (Software Engineer) |     "The medium is the message"
XML Script development,            |             - Marshall McLuhan
DecisionSoft Ltd.                  |




Reply via email to