XmlModify::addInsertBeforeStep |
![]() ![]() |
#include <DbXml.hpp>void XmlModify::addInsertBeforeStep(const XmlQueryExpression &selectionExpr, XmlObject type, const std::string &name, const std::string &content)
void XmlModify::addInsertBeforeStep(const XmlQueryExpression &selectionExpr, XmlObject type, const std::string &name, XmlResults &content)
Inserts the provided data into the document before the selected node, as a previous sibling. If the operation's target is an attribute node or the document root node, an exception is thrown at modification execution time.
If the content to be added is an attribute, the content is added to the targeted node's parent node. For any other type of content, the content is inserted into the document immediately before the targeted node's start tag.
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,2007 Oracle. All rights reserved.