I'm looking for a way to update an xml file attribute value. For example the following xml I would like to replace the attribute android:versionCode value 30003 with another value. I'm having a hard time understanding how ant can do that using replace or regex.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.app.see"
android:installLocation="auto"
android:versionCode="30003"
android:versionName="@string/app_version" >
</manifest>