基本上我想更新一个XML标记中的值。 这是我的XMLAnt任务更新值
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application> ten</application>
<version>1</version>
</appengine-web-app>
我想从十应用程序标记值更改为一些其它的值,说三。我的代码是这样的
<target name="renameconfig"
description="Renaming config files">
<taskdef name="xmltask"
classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
<xmltask source="war/WEB-INF/appengine-web.xml" dest="war/WEB-INF/appengine-web.xml">
<replace path="/:appengine-web-app/:application/text()" withText="three"> </replace>
</xmltask>
</target>
这填充应用程序标记.ie中的空值。如果有人纠正这一点,这将是非常棒的。感谢很多。
IL尝试上面.thanks – user1689117