Re: how to copy and edit a section of a text file

2008-10-16 Thread Gilbert Rebhan
Rebhan, Gilbert schrieb: > > -Original Message- > From: ca_iancu [mailto:[EMAIL PROTECTED] > Sent: Friday, October 10, 2008 2:11 AM > To: user@ant.apache.org > Subject: Re: how to copy and edit a section of a text file > > /* > No, I mean copy the entire sec

RE: how to copy and edit a section of a text file

2008-10-16 Thread Rebhan, Gilbert
-Original Message- From: ca_iancu [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 2:11 AM To: user@ant.apache.org Subject: Re: how to copy and edit a section of a text file /* No, I mean copy the entire section as written down before: from . I keep the old section, then I

Re: how to copy and edit a section of a text file

2008-10-09 Thread ca_iancu
>you mean copy one name attribute No, I mean copy the entire section as written down before: from . I keep the old section, then I append the new one which is almost identical but not quite. If you look again at the code, you will see that the second xml file (the one I would like to get) is diff

Re: how to copy and edit a section of a text file

2008-10-09 Thread Gilbert Rebhan
ca_iancu schrieb: >> Can you provide a little more details, xmlfile how it is and how it > More details, certainly! I need to find/read/duplicate a section of an xml > file, then append it and make a simple change to the added section. I need > to go from: > > > > > >

Re: how to copy and edit a section of a text file

2008-10-09 Thread ca_iancu
>Can you provide a little more details, xmlfile how it is and how it >should look after editing/appending/replacing ? More details, certainly! I need to find/read/duplicate a section of an xml file, then append it and make a simple change to the added section. I need to go from:

Re: how to copy and edit a section of a text file

2008-10-09 Thread Brian Agnew
Despite the fact that it comes from my company, it is in fact completely free. Such is the magic of open source etc. I have long looked at making an 'enterprise-level' version with huge support contacts. With little success :-) ca_iancu wrote: This is a commercial library. I want to use exis

RE: how to copy and edit a section of a text file

2008-10-09 Thread Matt Benson
Maybe you want to take a look at filterchains, documented under "Concepts and Types." HTH, Matt --- ca_iancu <[EMAIL PROTECTED]> wrote: > > This is a commercial library. I want to use existing > functionality from Ant > to accomplish this task. I am certain it is > possible, I just do not know

Re: how to copy and edit a section of a text file

2008-10-09 Thread Gilbert Rebhan
ca_iancu schrieb: > This is a commercial library. I want to use existing functionality from Ant > to accomplish this task. I am certain it is possible, I just do not know Ant no, it's free, you even get the sources :-) Of course there are many ways to Rome, but when dealing with xml i recommend th

RE: how to copy and edit a section of a text file

2008-10-09 Thread ca_iancu
This is a commercial library. I want to use existing functionality from Ant to accomplish this task. I am certain it is possible, I just do not know Ant well enough yet. There has to be some sort of loop that can be created to read from a file line by line and stop when a certain string is encount

RE: how to copy and edit a section of a text file

2008-10-09 Thread Rebhan, Gilbert
-Original Message- From: ca_iancu [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 3:22 PM To: user@ant.apache.org Subject: how to copy and edit a section of a text file /* Hello, I'm trying to edit an XML file by searching with regular expressions. Once found, the text will be