In other words, if you can't get to a specific node with an XPath expression 
you really need to roll your own. That's really what it is designed for.

You could do something like what you are doing, however, you probably still 
need your own script task to get the count of matching nodes. A quick google 
find this


From: Chris Fouts []
Sent: Friday, April 20, 2012 9:48 AM
To: Bob Archer;
Subject: RE: xmlpeek and multiple nodes

That's all I want to do, find a node and update it.

From: Bob Archer []
Sent: Friday, April 20, 2012 9:36 AM
To: Chris Fouts;
Subject: RE: xmlpeek and multiple nodes

For more than a simple find a node and update it I would recommend you write 
you own code using the script task. Or write your own task.


From: Chris Fouts []
Sent: Friday, April 20, 2012 9:02 AM
Subject: [NAnt-users] xmlpeek and multiple nodes

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


This didn't help,

And I found this

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="," 
   <xmlpeek file="${somefile} nodeindex="${index}" ..../>

So I found this
But my nant version 0.91 complains about <xmllist> being an unknown task or 
data type.


***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.***
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
NAnt-users mailing list

Reply via email to