I have the following .xml file which I like to manipulate:
<html>
<A>
<B>
<C>
<D>
<TYPE>
<NUMBER>7297</NUMBER>
<DATA />
</TYPE>
<TYPE>
<NUMBER>7721</NUMBER>
<DATA>A=1,B=2,C=3,</DATA>
</TYPE>
</D>
</C>
</B>
</A>
</html>
I want to change the text inside the <DATA> that lies under the <NUMBER>7721</NUMBER> element. How do I do that? If I use find() or findtext() it is only able to point to the first match.