Wildcard search at any nested depth using xml.etree.ElementTree
问题 I have a group of XML files which contain entries like <group name="XXX common string"> <value val="12" description="a dozen"> <text>one less than a baker's dozen</text> </value> <value val="13" description="a baker's dozen"> <text>One more than a dozen</text> </value> </group> <group name="YYY common string"> <value val="42" description="the answer"> <text>What do you get if you multiple 6 by 9?</text> </value> </group> Is there any simple way, using import xml.etree.ElementTree as ET and