I would like to search an XML file for multiple tags.
I can evaluate these command separately:
tree.findall('.//title')
tree.findall('.//p')
but how can I evaluate them together in the same time. I am looking for a syntax like .// title or .//p
I tried this command from an SO post
tree.findall('.//(p|title)')
but I get this traceback error SyntaxError: invalid descendant