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
In Section
Seekers of Perl Wisdom