develooper Front page | perl.beginners | Postings from October 2009

Re: xml simple question

Thread Previous | Thread Next
Shawn H Corey
October 23, 2009 06:16
Re: xml simple question
Message ID:
getget wrote:
> The content of 2 files output.xml and input.xml are different. How can
> I create the output file its content the same with input.xml.

Use a different parser than XML::Simple.  I suggest XML::Twig.

XML::Simple does not distinguish between attributes and content.
Because of this, it does not reproduce XML accurately.  It's good if all
you want to do is read XML but if use want to write it, use something

Just my 0.00000002 million dollars worth,

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About