I want to parse text from a xml file.Consider that I have a some lines in a file.xml
<s id="1792387-2">Castro Verde is situated in the Baixo Alentejo Subregion within a territory known locally as the Campo Branco (English: White Plains).</s>
How can I extract the following text from the above line:
Castro Verde is situated in the Baixo Alentejo Subregion within a territory known locally as the Campo Branco (English: White Plains).
And after making some changes with the text, I want to get return the change text with the same tag as like below.
<s id="1792387-2"> Changed Text </s>
Any suggestion please.Thanks!