For future reference: Perl and XML on the Command Line.