def getChildElementsByLocalName(childNodes, localName):
 childElementsByLocalName = []
 for childNode in childNodes:
  if (localName.lower() == childNode.getNodeName()):
   childElementsByLocalName.append(childNode)
 return childElementsByLocalName

def getChildElementsByLocalName ( childNodes , localName ) : childElementsByLocalName = [ ] for childNode in childNodes : if ( localName . lower ( ) == childNode . getNodeName ( ) ) : childElementsByLocalName . append ( childNode ) return childElementsByLocalName
get the childnodes which have the given local name .