ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Mesturini <jo_4_...@yahoo.it>
Subject Change XML by Ant
Date Mon, 13 Feb 2006 14:42:32 GMT
Hi community,

is there a way to change an XML file using Ant's
script? I found the XMLProperty tasks that reads an
XML, but it seems to be read-only.

from a file

  <root>
    <properties>
      <foo value="1"/>
      <foo value="2"/>
      <foo value="1"/>
      <foo value="3"/>
    </properties>
  </root>

I have to remove every <property> that have value="1",
in order to have as result

  <root>
    <properties>
      <foo value="2"/>
      <foo value="3"/>
    </properties>
  </root>

I need this because I'm building up an Eclipse
workspace with Ant, so in order to change projects
dependencies I have to manipulate XML config files
too.

Thank you very much
Jo



	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message