opensubscriber
   Find in this group all groups
 
Unknown more information…

n : nant-users@lists.sourceforge.net 20 April 2012 • 9:02PM -0400

[NAnt-users] xmlpeek and multiple nodes
by Chris Fouts

REPLY TO AUTHOR
 
REPLY TO GROUP




How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named nodes in a file, the the <test> node below.

<tests>
   <test>...</test>
   <test>...</test>
   <test>...</test>
</tests>

This didn't help, http://nant.sourceforge.net/release/0.85/help/tasks/xmlpeek.html

And I found this
http://old.nabble.com/xmlpeek---Multiple-nodes-found-with-the-XPath-expression-td20017190.html

Per that page, do I really have to do this, that is hard code the indices? So if I add a 16th node, I'll have to change the script to add a 16th index?
<foreach item="String" in="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15" delim="," property="index">
   <xmlpeek file="${somefile} nodeindex="${index}" ..../>
</foreach>

So I found this http://www.mail-archive.com/nant-users@list.../msg11179.html
But my nant version 0.91 complains about <xmllist> being an unknown task or data type.

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.