Questions tagged [xmltask]

66 questions
1
vote
2 answers

MSBuild: changing project references to file binary references

I have a few .net / C# projects that I'm building with MSBuild. In the project I'm building, there are some project references to other C# projects. I'm only building individual projects, so I'd like to repoint the project references to actual…
DonBecker
  • 2,424
  • 3
  • 25
  • 43
1
vote
1 answer

Replacing multiple lines of xml file from ant target

I have a web.xml with around 10 servlets defined with some basic configuration such as below: dummyServlet com.abc.Servlet
1
vote
1 answer

Not able to select XML root node having an attribute using XmlTask

I want to insert an element in the XML. This is an XML file - named web.xml index.html This is the ANT task I am using to insert an element…
p zankat
  • 75
  • 2
  • 14
1
vote
1 answer

Plugin maven-antrun-plugin causes xmltask to be not download in repo and build is getting failure

Having Maven build as with : org.apache.maven.plugins maven-antrun-plugin 1.7
Ranjit M
  • 138
  • 4
  • 4
  • 17
1
vote
1 answer

Converting xml files from a directory (using xslt operation) in ssis and move them into a new directory?

I have bunch of XML files that I wanted to transformed them (using XSLT operations) in SSIS (SQL Server 2014). I have created my xsl and can transform the files one by one to the format that I want. Trouble is I can't work out how to transform and…
M_Y
  • 11
  • 2
1
vote
1 answer

Is there a way to append elements to xml if they are not already existing

Having an existing xml I want to append a new node if it's not already existing in the xml. I am a complete newbie in XML path and I started by googling because I believe this would be pretty standard problem. I'm looking into using xmltask for…
Miguel Costa
  • 627
  • 1
  • 12
  • 30
1
vote
0 answers

How to remove an entire node from multiple XML files based on the text of a child node?

I have a set of xml files in a directory and as part of my build process using Ant I would like to remove an entire node based on the text inside a child node. An example is like this:
Dave Hahn
  • 11
  • 1
1
vote
1 answer

How to expand non-entity reference in xml file with Ant

I have an XML file with the following content: I want to read this file in Ant and put the…
Dante WWWW
  • 2,729
  • 1
  • 17
  • 33
1
vote
0 answers

ANT script : xmlcatalog not reading local dtd

I have XML file named TIBCOUniversalInstaller_TRA_5.10.0.silent as below.I want to replace values in XML file using "replace" target in ant script using xmltask task. XML File is below:
1
vote
2 answers

Finding a resource-ref XML Tag In Ant Script

I would like to programmatically remove a chunk of XML using an ant script. I found the wonderful xmltask task, but for the life of me I can't find the resource-ref node that I want to delete. Here's a subsection of what my XML doc looks like. It's…
Tom Purl
  • 519
  • 4
  • 20
1
vote
2 answers

java.net.ConnectException: Connection timed out: connect with ANT build

We are facing java.net.ConnectException: Connection timed out: connect while doing ANT build and this is happening in all java developer machine using ANT. We tried to block below tag in web.xml as java.sun.com is cause of issue. but still this…
user2846635
  • 27
  • 1
  • 6
1
vote
2 answers

How can I print the filename which is being processes by xmltask?

In the below ant script snippet, I am processing all the conn.xml files in a directory to find out if there is a DB entry other than MyDB. This code only sets the DB name of the last match which is still okay as there is only one such file normally.…
dganesh2002
  • 1,917
  • 1
  • 26
  • 29
1
vote
1 answer

How to get an XML node using a SSIS XPATH XML task

I am trying to use a XML task in SSIS to get a session ID value from this XML:
JasonBluefire
  • 312
  • 5
  • 14
1
vote
1 answer

xmltask test existence of node without text or attribute

I'm using Ant 1.8.4 and xmltask 1.16. I'm trying to modify Maven pom.xml files to check if there is a /project/properties element and create one if there isn't (so that I can then add a child element). The xmltask documentation indicates I have to…
1
vote
1 answer

Read key value pairings XML file via ant?

I want to read an XML file like below
kiran
  • 49
  • 8