XmlDocument::getContentAsDOM

API Ref

#include <DbXml.hpp>

xercesc_2_6::DOMDocument *XmlDocument::getContentAsDOM() const;


Description: XmlDocument::getContentAsDOM

Returns the document content as a Xerces Document Object Model (DOM). If the document is from a node storage container, the nodes are live, and retrieved on demand from the container database. This means that nodes will not be available if the transaction in which the document was retrieved is committed or aborted. Modifications to the DOM nodes will not be stored back to the document unless the XmlContainer::updateDocument method is called after the modifications have been made.

Not all Xerces DOM methods are supported by the implementation. Use of unsupported methods will throw an XmlException. This method is only supported by the Berkeley DB XML C++ API.

Errors

The XmlDocument::getContentAsDOM method may fail and throw XmlException, encapsulating one of the following non-zero errors:

DOM_PARSER_ERROR
The document could not be returned as a DOM.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.