def convertElementNode(elementNode, geometryOutput):
 if (geometryOutput == None):
  return
 if (len(geometryOutput) < 1):
  return
 if (len(geometryOutput) == 1):
  firstLoop = geometryOutput[0]
  if (firstLoop.__class__ == list):
   geometryOutput = firstLoop
 firstElement = geometryOutput[0]
 if (firstElement.__class__ == list):
  if (len(firstElement) > 1):
   convertElementNodeRenameByPaths(elementNode, geometryOutput)
  else:
   convertElementNodeByPath(elementNode, firstElement)
 else:
  convertElementNodeByPath(elementNode, geometryOutput)

def convertElementNode ( elementNode , geometryOutput ) : if ( geometryOutput == None ) : return if ( len ( geometryOutput ) < 1 ) : return if ( len ( geometryOutput ) == 1 ) : firstLoop = geometryOutput [ 0 ] if ( firstLoop . __class__ == list ) : geometryOutput = firstLoop firstElement = geometryOutput [ 0 ] if ( firstElement . __class__ == list ) : if ( len ( firstElement ) > 1 ) : convertElementNodeRenameByPaths ( elementNode , geometryOutput ) else : convertElementNodeByPath ( elementNode , firstElement ) else : convertElementNodeByPath ( elementNode , geometryOutput )
convert the xml element to a difference xml element .