我想分析從XML file.Consider文本,我有一個file.xml解析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>
我如何可以提取從上面的線以下文本的幾行:
Castro Verde is situated in the Baixo Alentejo Subregion within a territory known locally as the Campo Branco (English: White Plains).
在對文字進行一些更改之後,我希望返回帶有相同標記的更改文本,如下所示。
<s id="1792387-2"> Changed Text </s>
任何建議please.Thanks!謝謝!
什麼到底是你的問題? –
你想解析文本,XML還是兩者? – Legolas
是的,我想分析文本 –