XmlModify::addRenameStep

API Ref

#include <DbXml.hpp>

void XmlModify::addRenameStep(const XmlQueryExpression &selectionExpr, const std::string &newName)


Description: XmlModify::addRenameStep

Renames an element node, attribute node, or processing instruction. If the document content targeted by selectionExpr is any other type of content, an exception is thrown at modification execution time.

Parameters

selectionExpr
Provides the XQuery expression used to target the node to be renamed. Use XmlManager::prepare to create the XmlQueryExpression. If zero nodes are targeted by this expression, no modifications are performed when XmlModify::execute is called.
name
The new name to give the targeted node.

APIRef

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