in reply to XML::Simple how do i keep the same xml format (Values and Attributs)?

There is also NoAttr => 1 in XML::Simple but that goes into the other extreme.

Replies are listed 'Best First'.
Re^2: XML::Simple how do i keep the same xml format (Values and Attributs)?
by jakeease (Friar) on Jun 15, 2013 at 08:45 UTC

    I had occasion to use both the OP's solution and NoAttr => 1 on a project where rewriting existing XML::Simple to use a different module wasn't an option.

    When writing new modules for the project, I used XML::Twig or XML::LibXML. Didn't know about XML::Rules; I'll have to check it out.