modification d'un balise xml
bonjour a tous , j ai une table avec un colonne [cc_content] de type xml. J'aurai besoin de modifier la balise principal
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<cc:thresholdCategory key="K1390997942015" seq="2" version="7">
<cc:name>
<cc:Property language="fr">
<cc:PropertyValue>???</cc:PropertyValue>
</cc:Property>
<cc:Property language="en">
<cc:PropertyValue>Weight</cc:PropertyValue>
</cc:Property>
</cc:name>
<cc:description>
<cc:Property language="fr">
<cc:PropertyValue>???</cc:PropertyValue>
</cc:Property>
<cc:Property language="en">
<cc:PropertyValue>Body Weight</cc:PropertyValue>
</cc:Property>
</cc:description>
</cc:thresholdCategory> |
donc changer thresholdCategory par threshold
et mon code sql
Code:
1 2 3 4 5 6 7
|
update [cc_threshold] set
[cc_content] = cast(
replace(
cast([cc_content] as nvarchar(max)), '<cc:thresholdCategory>', '<cc:threshold>'
)
as xml) |
resultat (3138 row(s) affected)
mais rien n est jamais
alors ou est le probleme
si une personne peut m'aider merci d avance