XmlModify::addUpdateStep |
![]() ![]() |
#include <DbXml.hpp>void XmlModify::addUpdateStep(const XmlQueryExpression &selectionExpr, const std::string &text)
Replaces the targeted node's content with text. If the targeted node is an element node, all of the element node's children and text nodes are replaced with text. If the targeted node is an attribute node, the attribute's value is replaced by text. The purpose of this interface is primarily to replace text content. Note that text is treated as a text node. If it contains mark-up, that mark-up is escaped to make it legal text.
Documents resulting from this modification must be well-formed XML or an exception is thrown at modification execution time, if the documents affected are written back to their respective containers.
![]() ![]() |
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.