in reply to Moose attribute predicate alternative
As well as what choroba said, take a look at XML::Rabbit which is designed to simply mapping between Moose objects and XML.