ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: xmltask / xpath > node count
Date Mon, 16 Apr 2007 14:15:01 GMT
 
Hi,


-----Original Message-----
From: Brian Agnew [mailto:brian@oopsconsultancy.com] 
Sent: Monday, April 16, 2007 4:01 PM
To: Ant Users List
Subject: Re: xmltask / xpath > node count

/*
I think the most recent version is 1.14, but I don't think it affects
what
you're trying to do.
*/

that's good news :-)

/*
   <xmltask source="test.xml">
     <copy path="count(/module/name/text())" property="name.count"/>
   </xmltask>
   <echo>Count = ${name.count}</echo>

will do the job and write the correct value into 'name.count'. (the
above
XPath expression is for my test file - please adapt for your scenario).
*/

thanks !,
finally very simple, somehow i didn't find it in the manual.



Regards, Gilbert

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


Mime
View raw message