In the xerces-c DOM_Document interface, I noticed that there was a static
factory method called createDocument.  The comment with this function
states that it was added because
the DOM API lacks a mechanism for the creation of new documents.  However
the DOM2 spec. now has a createDocument function in the
DOM_DOMImplementation interface which takes in a name space URI, qualified
name and document type parameters, but is not static.  To use this new
createDocument function without a reference to an existing
DOMImplementation, one must use something similar to the following: 

DOM_Document d =
DOM_Document::createDocument().getDOMImplementation().createDocument(nsURI,
qn, dt);

This seems unintuitive.  Are there any plans to either make the new
createDocument static and/or move the old DOM_Document factory method over
to DOM_DOMImplementation?


Blaine Brodie

Reply via email to