I have an xml file that has multiple nodes that I want an xpath expression to return. I know that the xmlpeek will return the number of nodes found. I can not determine how to take that number, run it through a foreach loop and do specific things with it.
Example
<?xml version="1.0" encoding="UTF-8"?>
<deployment>
<instruction name="Deployment.doc" location="$/Fall Maintenance" />
<applications>
<application name="JobQueue" version="1.0.19.001" />
<application name="ReportsWeb" version="1.18.003" />
</applications>
</deployment>
The application node has a list of build files that I want to iterate over
one at a time for an entire build, or from a partial. I realize I can just
sequence the builds from within my own target. I want to create a generic
"initial" build file.
Is there a way to take that return value from my xpath and iterate it
through a foreach using the nodeindex for the next xmlpeek iteration?
I know that there is an "xmllist" custom task. I really want to stay with
the xmlpeek.
Thanks
-scott
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
