Easy API to maintain XML in Perl