How to replace xml attribute value?

jhVirganMontebh

New Member
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 \[code\]android:versionCode\[/code\] value \[code\]30003\[/code\] with another value. I'm having a hard time understanding how ant can do that using replace or regex.\[code\]<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>\[/code\]
 
Back
Top