2014-01-28 67 views
0

我试图替换跨xml文档复制的字段ID = 29的“可见”属性值。 的XML的一个例子如下发现:替换XML属性的值

<Types> 
    <Type ID="4"> 
     <Fields> 
      <Field ID="29" Visible="false"/> 
     </Fields> 
    </Type> 
    <Type ID="5"> 
     <Fields> 
      <Field ID="29" Visible="true"/> 
     </Fields> 
    </Type> 
    <Type ID="6"> 
     <Fields> 
      <Field ID="29" Visible="false"/> 
     </Fields> 
    </Type> 
</Types> 

我曾尝试以下,但没有成功:

update SF 
set [Static_Form_Properties].modify('replace value of (/Field[@ID=29]/@Visible)[1] with ("true")') 
from wf_workflow_step_form SF 

任何帮助将greately赞赏。 感谢

回答