bool CMarkup::RemoveChildElem();

RemoveChildElem is like RemoveElem, but it deletes the element at the current child position (and all its content if any). If there is no child position to delete, the method returns false and does not modify the CMarkup object.

Upon removal, the child position becomes that of the previous child element or none (no child position) if the removed element was the first child of the main position element. The fact that the child position becomes the previous element is so that the child position is correct for a subsequent call to FindChildElem.

This example shows how to remove all of the child elements of the current main position.

while ( xml.FindChildElem() )