ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjeev_Das" <Sanjeev_...@infosys.com>
Subject Find value between xml tags
Date Thu, 18 Nov 2004 13:45:56 GMT
I have to search & replace values of certain parameters in a XML file. These values i'm
reading from a different file.

for ex. My XML is like this:


<root>
	<tag1> abc ="123" </tag1>
	<tag2> xyz ="987" </tag2>
</root>

Now i want to change the value of abc from "123" to "345"

so, any pointers of doing it in ANT.

Regards,
Sanjeev



-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Thursday, November 18, 2004 7:03 PM
To: user@ant.apache.org
Subject: AW: Find value between xml tags

Dont know what you mean. Can you give an example?
There are several tasks for accessing xml: <xslt>, <xslproperty>, the xml
task (see external page)

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Sanjeev_Das [mailto:Sanjeev_Das@infosys.com]
> Gesendet am: Donnerstag, 18. November 2004 14:21
> An: user@ant.apache.org
> Betreff: Find value between xml tags
> 
> 
> Hi All,
> 
> I need to find out the value present in between the xml tags. Is there
> any specific task in Ant to do so? If not can anyone suggest a
> workaround.
> 
> Regards,
> Sanjeev
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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


Mime
View raw message