ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: XML
Date Mon, 09 Mar 2009 13:33:48 GMT
>Is it possible to iterate over a XML file? How can this be done?

It is a very long time ago that I have seen a PropertyHelper
implementation for XPath.
With that and AntContrib you could do something like

<echo>The buildfile contains these targets:</echo>
<ac:for param="target" list="${xpath:build.xml/target">
    <sequential>
        <echo>@{target}</echo>
    </sequential>
</ac:for>


>have you looked at xslt task?
>http://ant.apache.org/manual/CoreTasks/style.html

With <xslt> you could also create a list for <ac:for> ...


Jan

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


Mime
View raw message