http://qs321.pair.com?node_id=1053205


in reply to Sort xml nodes by schema

Stop using XML::Simple; it's not an appropriate module for your task - even the XML::Simple documentation tells you that.

In my experience, XML::LibXML is the best general-purpose XML module for Perl.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Replies are listed 'Best First'.
Re^2: Sort xml nodes by schema
by laozi (Novice) on Sep 10, 2013 at 10:05 UTC

    No problem i am moving!

    But, do you know how to sort elements according to schema using XML::LibXML ?