Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想xml通过ANT任务替换元素的值......实现这一目标的最佳方法是什么?
xml
ANT
示例: abc.xml包含一个元素<setpath> true </setpath>。我想通过任务替换<setpath>as的值。falseANT
abc.xml
<setpath> true </setpath>
<setpath>
false
使用replace或replaceRegexp任务,或者,如果确实需要,使用xslt任务。