in reply to Generating xml from Perl

If you're just adding numbers on the end of the file, you're not dealing with an XML file. If the data is really XML, you should not be trying to deal with it "raw", but rather through the use of a module, such as XML::Simple.

Replies are listed 'Best First'.
Re^2: Generating xml from Perl
by satchm0h (Beadle) on May 10, 2005 at 01:00 UTC
    XML::Simple has some isssues with attribute handling. From my experience, you are not guaranteed that the XML you read in is equivalent to what XML::Simple will write out. Take a look at XML::Twig, it is more complex, but full featured.
    ...stumbling down the path toward enlightenment
      Well, that's why I said "such as". There are certainly modules that do a better job with XML, but at least some of them have "overhead", such as requiring binary (compiled) components.
      All issues can be resolved by RTFM.