in reply to XML file and objects

I'm using moose if that would help

Take a look at XML::Toolkit, it will do pretty much all that you are looking for. The POD claims it to be alpha, but we have used a pre-alpha version of it very successfully in production for many months now, it is quite solid and well thought out. It is a new module though so it is weak on tests and docs, but trust me, it is worth it.

-stvn