: Re: Looking for task to add text to file.
Would it make more sense to break up the file into other smaller ones
if regexp doesn't work? Then you could use loadfile for the header
content, have a property to store the items you want to add and another
loadfile for the rest of the doc
o teh list,
all i want to to is to place anothe item in DTD list
its pure text and only entry name.
-Original Message-
From: Brian Agnew [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 4:31 PM
To: Ant Users List
Subject: Re: Looking for task to add text to file.
Ok. Sounds like
Users List
Subject: Re: Looking for task to add text to file.
Ok. Sounds like you're covering that (and you may want to worry about
other XML entities - & etc.). Your problem domain may be small
enough to require such a solution, but once you have to worry about
character encodings and
say, it's all dependent on what you're trying to achieve
(tactical vs.strategic and so on)
Nir Geier wrote:
im using x; to inser < >
-Original Message-
From: Brian Agnew [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 4:13 PM
To: Ant Users List
Subject: Re: Lookin
im using x; to inser < >
-Original Message-
From: Brian Agnew [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 4:13 PM
To: Ant Users List
Subject: Re: Looking for task to add text to file.
If you're modifying XML then I'd strongly suggest using xmltask (I
If you're modifying XML then I'd strongly suggest using xmltask (I'm
biased here!) or equivalent.
Why ? A simple text search/replace doesn't respect the character
encoding conventions within your XML, and doesn't respect entity
encoding. e.g. you want to insert the text "x < y". If you do that
i didnt fin teh :
2) using and filters while ing
- extract part before
- extract part after
using to combine before, new and after parts
you mentioned before.
where are the tail and head? (which task?)
Nir.
-
To un
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 2:19 PM
To: user@ant.apache.org
Subject: AW: Looking for task to add text to file.
Ok - four steps back ...
What is your current DTD and where you want to add the "node"?
Jan
> -Ursprüngliche Nachricht---
Ok - four steps back ...
What is your current DTD and where you want to add the "node"?
Jan
> -Ursprüngliche Nachricht-
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 15:17
> An: Ant Users List
> Betreff: RE: Looking for
: Looking for task to add text to file.
I think you have misunderstood me (or vice versa :-)
With a DTD like
book : (chapter | comment)+
you could have a comment, but you dont have to. So you could add your "node"
to the DTD and the XML would be valid - with or without the . So no
change
ore.
Jan
> -Ursprüngliche Nachricht-
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 14:24
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
>
> Hi again.
> i MUST change the DTD.
> The xml nodes are
ending teh text to the head of the list instead of doing it in the end.
Nir.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 12:36 PM
To: user@ant.apache.org
Subject: AW: Looking for task to add text to file.
For manipulating the xml fi
/xmltask.html
> -Ursprüngliche Nachricht-
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 13:10
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
>
> My task is the following:
>
> I have XML file and the
:52 PM
To: Ant Users List
Subject: RE: Looking for task to add text to file.
Thanks alot.
i will try it all now.
Ty
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 11:49 AM
To: user@ant.apache.org
Subject: AW: Looking for task to
Thanks alot.
i will try it all now.
Ty
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 11:49 AM
To: user@ant.apache.org
Subject: AW: Looking for task to add text to file.
Some possibilities which come into my mind:
1) using
2) using
rstag, 28. April 2005 12:42
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
>
> Ty
>
> i need to add it to certain location insid ethe file.
> not to write log messages.
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:
Ty
i need to add it to certain location insid ethe file.
not to write log messages.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 11:39 AM
To: user@ant.apache.org
Subject: AW: Looking for task to add text to file.
message
Jan
Sorry forgotten:
message
Jan
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 11:39
> An: user@ant.apache.org
> Betreff: AW: Looking for task to add text to file.
>
>
message
Jan
> -Ursprüngliche Nachricht-
> Von: Nir Geier [mailto:[EMAIL PROTECTED]
> Gesendet am: Donnerstag, 28. April 2005 12:16
> An: Ant Users List
> Betreff: RE: Looking for task to add text to file.
>
>
> Ty Gilbert.
> I will look into it in detail
Ty Gilbert.
I will look into it in details.
-Original Message-
From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 10:34 AM
To: Ant Users List
Subject: RE: Looking for task to add text to file.
Hi,
i've had a similar problem
see =
age-
From: Nir Geier [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 28, 2005 11:18 AM
To: Ant Users List
Subject: Looking for task to add text to file.
Hi all,
Im trying to append text to file and I could't find any suitable task
for doing so.
As a workaround im using the 'Replace
Hi all,
Im trying to append text to file and I could't find any suitable task for doing
so.
As a workaround im using the 'Replace' task.
(http://ant.apache.org/manual/CoreTasks/replace.html)
Another option is the 'Concat' (
http://ant.apache.org/manual/CoreTasks/concat.html ) but it is limited
22 matches
Mail list logo