I am parsing an XML file using xml.etree.ElementTree. I want to find elements based off the name attribute.
fnd = root.findall("./player[@name='Pqp239']")
But, this only will find exact matches for the name. How would you go about finding elements whose name contains a part of a name? So it would be something like this
fnd = root.findall("./player[@name='rob']")
would find all elemnts whose name contain rob like these:
Rob
Robert
chifforobe