3
如何使用XQuery移除xml中的處理指令標記?Marklogic:使用移除處理指令標記的Xpath
示例XML:
<a>
<text><?test id="1" loc="start"?><b type="bold">1. </b>
Security or protection <?test id="1" loc=="end"?><?test id="1" loc="start"?><b type="bold">2.
</b> Analyse.
<?test id="1" loc="end"?></text>
</a>
預期輸出:
<a>
<text><b type="bold">1. </b> Security or protection <b type="bold">2.
</b> Analyse.</text>
</a>
請幫助去除PI標籤。
很棒@grtjn ..它工作正常。謝謝! – Antony