XmlDocument::modifyDocument

API Ref

#include <DbXml.hpp>

void XmlDocument::modifyDocument(const XmlModify &modify);


Description: XmlDocument::modifyDocument

The XmlDocument::modifyDocument method modifies the XmlDocument contents based on the information contained in the XmlModify object. In order to determine how many modification operations were performed, the XmlModify::getNumModifications method should be used.

Parameters

modify
The XmlModify object describing how to change the document. It encapsulates the XPath query, which specifies the target nodes in the document, as well as the modification operation to perform, with associated arguments.

Errors

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

INVALID_VALUE
The modification operation specified could not be performed on the node(s) specified by the XPath query.

XPATH_EVALUATION_ERROR
The XPath evaluator was unable to execute the XPath expression.

XPATH_PARSER_ERROR
The XPath parser could not parse the XPath expression.

Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue

APIRef

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.