I don’t think I said “don’t do that”… All I said was, out of the box xmlpoke
and xmlpeek are really designed to work with an xpath that matches a single
element in the XML. ;)
BOb
From: m...@thefrederickhome.name [mailto:m...@thefrederickhome.name]
Sent: Friday, April 20, 2012 11:44 AM
To: nan
I have a modified copy of the XMLLIST task that I use for this. This issue comes up quite often for me; I don't understand why this type of situation/solution seems to get downplayed as "...don't do that".You can find a way to the original here: http://weblogs.asp.net/soever/archive/2006/12/01/nan
Silly me.
This works for xmlpeek, but I can't xmlpoke on a nodeindex. Duh Backtrack
-chris
From: Chris Fouts
Sent: Friday, April 20, 2012 11:18 AM
To: nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes
Ok, here's my workaround to parse this xml file, and it works! Esse
Ok, here's my workaround to parse this xml file, and it works! Essentially I
just increment the node index and make a recursive target call.
Lesson1234
skip
Lesson4567
yes
Lesson5678
no
*
no
Not really, no.
From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 10:03 AM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] xmlpeek and multiple nodes
So no canned support for this?
-chris
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday,
Sorry, I see it now, it's int::parse(SomeString)
From: Chris Fouts
Sent: Friday, April 20, 2012 10:53 AM
To: nant-users@lists.sourceforge.net
Subject: String to int
I'm using the convert::to-int function to convert a string property into an int
so I can increment it. However I get this (albeit j
I'm using the convert::to-int function to convert a string property into an int
so I can increment it. However I get this (albeit just) warning.
Function convert::to-int is deprecated. Use type-specific conversion functions
instead.
I don't see a string type-specific conversion here.
http://na
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.
BOb
From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:02 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] xmlpe
So no canned support for this?
-chris
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:59 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes
In other words, if you can't get to a specific node with an XPath expression
you rea
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
If I can find out how to loop through them all, I can do the rest.
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:54 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes
But, is there something unique in the node that you want
But, is there something unique in the node that you want to update? I assume no
since you are looping through them all?
BOb
From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, April 20, 2012 9:48 AM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multipl
That's all I want to do, find a node and update it.
From: Bob Archer [mailto:bob.arc...@amsi.com]
Sent: Friday, April 20, 2012 9:36 AM
To: Chris Fouts; nant-users@lists.sourceforge.net
Subject: RE: xmlpeek and multiple nodes
For more than a simple find a node and update it I would recommend you w
How can I use xmlpeek/xmlpoke to recursively peruse all the similarly named
nodes in a file, the the node below.
...
...
...
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
14 matches
Mail list logo