def removeChildNodesFromElementObject(elementNode):
 elementNode.removeChildNodesFromIDNameParent()
 if (elementNode.xmlObject != None):
  if (elementNode.parentNode.xmlObject != None):
   if (elementNode.xmlObject in elementNode.parentNode.xmlObject.archivableObjects):
    elementNode.parentNode.xmlObject.archivableObjects.remove(elementNode.xmlObject)

def removeChildNodesFromElementObject ( elementNode ) : elementNode . removeChildNodesFromIDNameParent ( ) if ( elementNode . xmlObject != None ) : if ( elementNode . parentNode . xmlObject != None ) : if ( elementNode . xmlObject in elementNode . parentNode . xmlObject . archivableObjects ) : elementNode . parentNode . xmlObject . archivableObjects . remove ( elementNode . xmlObject )
process the xml element by manipulationfunction .