in reply to Need to process a XML file through Perl

One more question Jenda

What I noticed in the new files generated by 'XML::Rules' is that attributes having no value e.g <attribute1></attribute1> in the original file where simply written as </attribute> in the new file.

Also what I found that original tags like

<contents xsi:type="abc" xmlns:imp="xyz">

where written like

<contents xmlns:imp="xyz" xsi:type="abc">'

As you can see the order of attributes inside the tag has changed.

Not sure if these are XML features or something specific to module.

Replies are listed 'Best First'.
Re^2: Need to process a XML file through Perl
by Jenda (Abbot) on Dec 03, 2009 at 21:59 UTC

    As far as XML is concerned <tag></tag> and <tag/> are equivalent and the order of attributes is irrelevant. If I really had to I would be able to preserve the distinction and the order but its not worth the effort.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.