开发者

Changing xml-file using Ant

开发者 https://www.devze.com 2023-02-05 12:57 出处:网络
How to change existing xml-file using Ant. For example:开发者_如何学C <test attr=\"0\"> ...

How to change existing xml-file using Ant. For example:开发者_如何学C

<test attr="0">
    ...    
</test>

to

<test attr="1">
...
</test>


Use xmltask see <attr> section in particular), eg:

<attr path="//test[@attr='0']/" attr="attr" value="1"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消