Deprecated 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
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | A successful call to intialize() must be made before calling this funciton. |
P6R::eTooBig | index is larger than number of children of current node. |
P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eBusy | Can only replace a node that is only in the tree and not used elsewhere. |