BDB XML, getContentAsDOM and DOMDocument - 02-03-2005 , 04:51 PM
I'm using Berkeley DB XML 2.0, calling XmldDocument::getContentAsDOM
function to retrieve a pointer to an Xerces DOMDocument. The document is
queried straight from database. Then using the DOMDocument pointer to make a
call to Xerces' DOMWriter::writeNode, an XML Exception is thrown stating
"XDOM not implemented: getEncoding File: NsXercesDom.cpp Line: 30".
Since the given file is part of the DB XML implementation, the problem must
be related to the database. Is there anything to pay attention to when
getting the content of an XmlDocument as a Xerces DOMDocument?
Re: BDB XML, getContentAsDOM and DOMDocument - 02-07-2005 , 12:08 PM
The fact that DOMDocument::getEncoding() is not implemented in BDB XML
is an oversight, and will be fixed.
You can work around the issue by explicitly setting
the encoding you want for the output, using the method,
calling DOMWriter::writeNode(). It is usually a good idea to be
your desired output encoding, in general.