I have an XML string
<tags>
<person1>dave jones</person1>
<person2>ron matthews</person2>
<person3>sally van heerden</person3>
<place>tygervalley</place>
<ocassion>shopping</ocassion>
</tags>
and I would like to search this xml string using search terms such as "Sally Van Heerden" or "Tygervalley"
Is it faster to use regex to find the terms in this string or is the find() method of Python fast enough? I can also search using the element tree XML parser for python and then build the XML tree then searching it but I fear it will be too slow.
Which of the above three is the fastest? Also any other suggestions?
I try to compare regexp and lxml for not large xml files and there was no strong differences between.