in reply to Re: Replacing things in XML files
in thread Replacing things in XML files

It looks like XML::Simple loses the distinction between attributes and child elements, when building the returned data structure. How do you preserve the actual content when writing it back out?

Replies are listed 'Best First'.
Re^3: Replacing things in XML files
by osunderdog (Deacon) on Apr 27, 2006 at 20:46 UTC

    This is definitely one of the difficulties I've had with XML::Simple. XMLin and XMLout aren't the inverse of each other. In other words, it's difficult write out the same thing that you read in and vice versa.

    I if you need that, you should probably look at XML::Twig.

    Hazah! I'm Employed!