Questions tagged [xmltask]
66 questions
0
votes
1 answer
find a value of a sibling node in xml file with ant xmltask
I have the following xml block (a standard jboss web.xml file) :
checkInterval
-1
…

Michael
- 22,196
- 33
- 132
- 187
0
votes
2 answers
How to extend an XML File using ant xmltask by copying tags from a source-file to the dest-file in specific positions
Im trying to create a special web.xml for local development.
I have some tags stored in a separate xml-file which need to be selected and pasted to specific positions inside the final web.xml.
To achieve this I am using the copy and the paste action…

elfwyn
- 568
- 2
- 11
- 33
0
votes
1 answer
2 or more than xml file how can i parse by xml Task Ant
I have tried to get xml property and xml task, how can I loop the 2 or more files which are in fileset? I get a file list when I tried to get them in for loop so I can parse each xml property.
Test1.xml:…

Manish Joshi
- 1
- 3
0
votes
1 answer
AntSCript to extract xml tag having specific matching string in attribute value from xml file
I have and XML file as below

Shrijeet Sinha
- 11
- 3
0
votes
0 answers
Xmlcatalog in Ant script to read part of XML tags
I have a xyz.html file which contains the line-
I am Man (2.0)
I need to extract the value (2.0). I can use…

Amit
- 121
- 1
- 3
- 12
0
votes
1 answer
ANT script to update tag in xml file using properties file
Please help me here with ant script to perform below mentiones task as i am stuck with it and not getting through.
I have properties files as below:
AccessSession/OperatorCode=Production
AccessSession/Password=%587931#
And so on....
And XML content…

Shrijeet Sinha
- 11
- 3
0
votes
3 answers
Has Sun deprecated Java DTD URLs?
We use the xmltask ANT task for conditional logic (ie: if statements) in our ANT scripts.
Currently this task is bombing, apparently because can't reach "http://java.sun.com/dtd/application_1_3.dtd". We can't access this URL either in our browser.…

Marcus Leon
- 55,199
- 118
- 297
- 429
0
votes
1 answer
xmltask error when replacing node in xml file
I got an error when runnning target replace to xmltask:
C:\Tools\build.xml:432: The following error occurred while executing this line:
C:\Tools\build.xml:408: Failed to specify text in replace
the problem is that my coworker had no issues running…

Victor
- 515
- 1
- 5
- 10
0
votes
1 answer
How to replace 1st node attribute value in xml using xpath
In the below XML, need to replace the namespace by using XPath.
I tried…

jass
- 343
- 2
- 6
- 16
0
votes
1 answer
How to reset the buffer value in xmltask?
I'm new to xmltask. Since im using xmltask to copy and insert nodes. My problem is, i used to store the copied values into buffer rather using the property. The copied values will be inserted based on the loop(it might run for 3 times). So when its…

jass
- 343
- 2
- 6
- 16
0
votes
1 answer
Merge xml file in ant script
Have such a requirement:
Insert the following servelet into web.xml if not already there:
My Servlet
myServlet
com.tom.servlet.MyServlet
…

Tom
- 2,857
- 9
- 46
- 59
0
votes
0 answers
ANT xml file loop, conditional write to other path
I have a property file which is dynamic, an extract of this file might look like;
user1=password1
user2=password2
user3=password3
And I have a xml file (which is also dynamic);
user1
…

RyanOz
- 115
- 1
- 7
0
votes
2 answers
XMLTask convert ' to '
When i run xmltask it's convert tags like ' to ' .
Example:
From:
'operation'
To:
'operation'
How can I avoid this auto converting?
I want that ' to stay as it is.
0
votes
1 answer
Add attribute to XML with xmltask
i have this
How can i use xmltask to add this attribute?
i cant find anything on the documentation.
Thanks

kpma1985
- 25
- 4
0
votes
1 answer
XML task, how to save buffer?
i'm useing the XML task in ANT to copy siome XML stuff.
This part of code copies everything which is between the Checktag with the…

merlinsson
- 65
- 8