If you have this xml
<AssetComponent name="AssetComponent4881" width="300">
<Asset id="5" type="1" />
</AssetComponent>
<AssetComponent name="AssetComponent4882" width="300">
<Asset id="5" type="1" />
</AssetComponent>
Is it possible to replace all the ids from 5 to 6 in one query?
With this sql only one attribute at the time can be replaced:
SET @myDoc.modify('
replace value of (//Asset/@id)[1]
with sql:variable("@BinaryAssetId")
')
From the sql docs I can see that the replace should return a atomic node, just one, so is there another way to do this?