dbTalk Databases Forums  

BDB XML, getContentAsDOM and DOMDocument

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss BDB XML, getContentAsDOM and DOMDocument in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hendrik Rusch
 
Posts: n/a

Default BDB XML, getContentAsDOM and DOMDocument - 02-03-2005 , 04:51 PM






Hi,

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?

Regards,
Hendrik



Reply With Quote
  #2  
Old   
George
 
Posts: n/a

Default Re: BDB XML, getContentAsDOM and DOMDocument - 02-07-2005 , 12:08 PM






Hendrik,

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,
DOMWriter::setEncoding(), before
calling DOMWriter::writeNode(). It is usually a good idea to be
explicit about
your desired output encoding, in general.

Regards,

George


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.