0
更新屬性值,我有以下XML取決於條件XML使用XQuery
<Root xmlns:test="http://sample">
<Values>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="2">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="2">
</Value>
<Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance" d3p1:type="1">
</Value>
</Values>
</Root>
在這裏,我想用type=2
所有元素值更新爲type = 3
。
請有人可以告訴我如何做到這一點?
由於它的工作:) –