Re: [NAnt-users] Navigating XML documents ...
Thanks for the reference to . I have built this code into my standard extension DLL and it seems to be working as advertised. However, there is a part of the problem that I have yet to find a good solution. In the example below, I can generate a list of all the 'Path' attributes, or all the 'Status' attributes. However, there is no practical way (that I can think of) to iterate over these two lists simultaneously. What I really need is to 'fetch' each node, one at a time, then gather the various attributes set for that node. Then, iterate to the next node in the file. Is there any way to do this via or with some combination of other Nant tasks? The only other solution I can find is to execute three tasks and fetch the 'Path' , 'Status' and 'Mode' attributes into separate comma separated strings. Then, perform string manipulations in such a way as to fetch the 'Path' , 'Status' and 'Mode' attributes in parallels. It seems like there must be a more straightforward and direct solutions to this? Has anyone attempted to modify the task to fetch and xml element, then it's subsequent attributes? Thanks, Ken Parrish Gomez, Inc. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[NAnt-users] FTP Task
Hello, I need to make a tweak to the FTP task. When it compares dates from my local system to remote system, the date of the remote system is off by 1 hour, so code I've made changes to inside this hour do not get ftp'd when overwrite is false. I'm hoping to: a) configure the FTP task somehow b) tweak the source code If option b, where can I find the source code? Thanks, Karl.. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] NAnt-users Digest, Vol 32, Issue 6
Ken, Yes, I do this all the time with . I made a slight modification that I use a lot, but your particular case doesn't need my mod. Look at http://weblogs.asp.net/soever/archive/2006/12/01/nant-xmllist-command-updated.aspx. This is a blog entry, but it has a link to the code you want. > Message: 4 > Date: Tue, 27 Jan 2009 11:53:26 -0500 > From: "Parrish, Ken" > Subject: [NAnt-users] Navigating XML documents ... > To: > Message-ID: > <6d3ca9b0bea31640b4e6338360c84740041c0...@entdc1ms02.corp.gomez.com> > Content-Type: text/plain; charset="us-ascii" > > Sometime back there were several postings regarding the problem of > navigating through a collection of XML nodes in an XML document. > > I have a Nant task that needs to fetch a collection of XML nodes from a > file and iterate over the collection and take action against each node. > An example of the content of the XML file is shown below. > > In this case, I need to fetch the node and iterate over this > child nodes. I am aware that the task has a node number that > can be use to fetch the nth node in a list. However, my files > potentially have 100's of nodes to this technique seems pretty > cumbersome. > > I recall seeing a reference to an task, but my link to this > task is broken. > > Are there any reasonable solutions to this problem? Any Nant libraries > for parsing and navigating XML files? > > > > > > > > > > > > > > > > Thank you, > > Ken Parrish > Gomez, Inc. > -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
[NAnt-users] Navigating XML documents ...
Sometime back there were several postings regarding the problem of navigating through a collection of XML nodes in an XML document. I have a Nant task that needs to fetch a collection of XML nodes from a file and iterate over the collection and take action against each node. An example of the content of the XML file is shown below. In this case, I need to fetch the node and iterate over this child nodes. I am aware that the task has a node number that can be use to fetch the nth node in a list. However, my files potentially have 100's of nodes to this technique seems pretty cumbersome. I recall seeing a reference to an task, but my link to this task is broken. Are there any reasonable solutions to this problem? Any Nant libraries for parsing and navigating XML files? Thank you, Ken Parrish Gomez, Inc. -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users