私は次のようなxmlタグを持っています:
<p xmlns="http://www.w3.org/1999/xhtml">Text1<span title="instruction=componentpresentation,componentId=1234,componentTemplateId=1111">CPText2CP</span></p>
タグ<span title="instruction=componentpresentation,componentId=1234,componentTemplateId=1111">CPText2CP</span>
を次のように置き換える必要がある場合
<componentpresentation componentID="1234" templateID="1111" dcpID="dcp1111_1234" dcplocation="/wip/data/pub60/dcp/txt/dcp1111_1234.txt">Text2</componentpresentation>
これを実現するための可能な方法はありますか、提案/変更を与えてください。
編集
上記のタグから、タグ<span></span>
の間にテキストを含む文字列として完全なタグを取得できます。任意の提案。