Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXMLNode2::replaceChildAt ( P6UINT32  index,
p6IXMLNode pNode 
)
pure virtual

Note the caller will probably want the function p6IDOMXML::replaceChildAt( pParent, index, pNewChild ) instead of calling this function.

The current node has getNumChildren() number of children. Starting at offset zero the index parameter identifies the child XML node to replace. Note, that this method does not free that XML node but just removes it from the DOM tree off of its parent and adds the pNode parameter in its place.

Parameters
index[ in ] A parent's children have indexes from {0 .. getNumChildren()}.
pNode[ in ] a decendent of the current node.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eTooBigindex is larger than number of children of current node.
P6R::eInvalidArgOne of the parameters is NULL.
P6R::eBusyCan only replace a node that is only in the tree and not used elsewhere.