Re: How to insert data onto an existing XML file

2007-10-08 Thread Jenda Krynicky
> Jenda Krynicky wrote: > > On 2 Oct 2007 at 10:54, Matthew Whipple wrote: > > > >> You can't really strictly "append" to a well-formed XML without > >> breaking the syntax. You need the properly closed top level element > >> at the very least, in addition to whatever nesting may be going on.

Re: How to insert data onto an existing XML file

2007-10-03 Thread Matthew Whipple
Jenda Krynicky wrote: > On 2 Oct 2007 at 10:54, Matthew Whipple wrote: > >> You can't really strictly "append" to a well-formed XML without >> breaking the syntax. You need the properly closed top level element >> at the very least, in addition to whatever nesting may be going on. >> > >

Re: How to insert data onto an existing XML file

2007-10-03 Thread Ken Foskey
On Wed, 2007-10-03 at 00:42 +0800, Steven Sim wrote: > Gurus; > > Sorry if this is not the proper forum. > > I've successfully written a Perl script to create a specific XML file. > > The problem comes when I attempt to run the script again and append XML > entries onto the XML file. > > Usin

RE: How to insert data onto an existing XML file

2007-10-03 Thread Bob McConnell
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 03, 2007 6:12 AM > To: beginners@perl.org > Subject: Re: How to insert data onto an existing XML file > > On 2 Oct 2007 at 10:54, Matthew Whipple wrote: > > An ugl

Re: How to insert data onto an existing XML file

2007-10-03 Thread Jenda Krynicky
On 2 Oct 2007 at 10:54, Matthew Whipple wrote: > You can't really strictly "append" to a well-formed XML without > breaking the syntax. You need the properly closed top level element > at the very least, in addition to whatever nesting may be going on. > An ugly solution would be to chop off the

Re: How to insert data onto an existing XML file

2007-10-02 Thread Tom Phoenix
On 10/2/07, Steven Sim <[EMAIL PROTECTED]> wrote: > I've successfully written a Perl script to create a specific XML file. > > The problem comes when I attempt to run the script again and append XML > entries onto the XML file. > > Using XML::Writer, I am unable to perform a proper append. (The ap

Re: How to insert data onto an existing XML file

2007-10-02 Thread Matthew Whipple
You can't really strictly "append" to a well-formed XML without breaking the syntax. You need the properly closed top level element at the very least, in addition to whatever nesting may be going on. An ugly solution would be to chop off the end of whatever file you're dealing with and then recre

How to insert data onto an existing XML file

2007-10-02 Thread Steven Sim
Gurus; Sorry if this is not the proper forum. I've successfully written a Perl script to create a specific XML file. The problem comes when I attempt to run the script again and append XML entries onto the XML file. Using XML::Writer, I am unable to perform a proper append. (The append IO i