code: def childByNodeName(self, nodeName):
          
          assert '/' not in nodeName, "nodeName can not contain slashes"
          for child in self.childItems:
              if child.nodeName == nodeName:
                  return child
  
          raise IndexError("No child item found having nodeName: {}".format(nodeName))
docs: Gets first (direct) child that has the nodeName.