def remove_elements(self, name):
        """
        Removes all occurences of an element from the tree. Start at
        specified root_node if specified, otherwise start at tree's root.
        """
        
        if not element_name.startswith('//'):
            element_name = '//' + element_name
        elements = self.element.xpath(name % '%s ', namespaces=self.namespaces) 
        for element in elements:
            parent = element.getparent()
            parent.remove(element)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/util/xml.py/XmlElement.remove_elements/swapped operands of `%`