I have an XML file, and i want to get the text from one tag, but if that text contain another tag to ignore it. For example :
<?xml version="1.0"?>
<entries>
<entry accente="B" diacritice="B">
<sense class="0" value="B">
<definition>
<RegDef>Hello <i>world.</i> Today is Saturday.</RegDef>
</definition>
</sense>
</entry>
</entries>
the output should be : "Hello world. Today is Saturday.
What is the best method to do this?