You can use the loopthrough task on from my nant stuff distro avalible on jayflowers.com.  Here is an example:

     <vsshistory
      dbpath="${VSS.DBPath}"
      path="${ Private.SourceControl.ConvertLocalPathToPath.Path}"
      username="${VSS.Username}"
      password="${VSS.Password}"
      fromlabel="Team2-1.0.0.37"
      output="C:\Temp\History.xml"
        />

    <xmlquery file="C:\Temp\History.xml" query="/VssHistory/Entry/@Date" id="Dates" />

    <loopthrough property="Date">
      <items>
        <xmlquery refid="Dates"/>
      </items>
      <do>
        <echo message="${Date}"/>
      </do>
    </loopthrough>


On 7/25/06, Duheric, Irfan <[EMAIL PROTECTED]> wrote:

Hi,

 

if I wont to run over   multiple nodes in some XML file, I do it on this way:

 

< foreach item="String" in ="1 2 3 4 5 6" delim=" " property ="count">

 

How is right way to loop over unknown count of nodes?

 

Thanks

 

Mit freundlichen Grüßen/Kind Regards

Irfan Duheric
Software Developer


GROUP Technologies AG
Ottostr. 4
76227 Karlsruhe
Germany
Fon: +49-(0)-721-4901-0
Fax: +49-(0)-721-4901-199


Protect your company now with e-mail encryption, anti-virus, anti-spam and more - all available out of one hand and in best quality! www.group-technologies.com



* * * * * G R O U P T e c h n o l o g i e s L E G A L D I S C L A I M E R * * * * *

Disclaimer (

automatically generated by iQ.Suite Trailer)

Mail is intended for preliminary information gathering purposes only and does not represent a legally binding promise.

This document should only be read by those persons to whom it is addressed and is not intended to be relied upon by any person without subsequent written confirmation of its contents. Accordingly, our company disclaims all responsibility and accepts no liability (including negligence) for the consequences for any person acting, or refraining from acting, on such information prior to the receipt by those persons of subsequent written confirmation.

Any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message is strictly prohibited.

GROUP Technologies AG

, Ottostr. 4, D-76227 Karlsruhe

Phone: +49 / (0)721 / 4901-0, Fax: +49 / (0)721 / 4901-199

http://www.group-technologies.com

* * * * * G R O U P T e c h n o l o g i e s L E G A L D I S C L A I M E R * * * * *


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users





--
Jay Flowers
----------------------------------------------------------------------
http://jayflowers.com
---------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to