NAME
XML::Crawler - Crawl an XML document to create a Perl data structure which resembles the XML data structure.
SYNOPSIS
use XML::Crawler qw( xml_to_ra );
my $array_ref = xml_to_ra( $xml );
DESCRIPTION
This:
<?xml version="1.0"?>
<fruit type="banana">yellow</fruit>
Is translated to:
[
'#document' => [
[ 'fruit' => { 'type' => 'banana' } => 'yellow' ]
]
]
This:
<?xml version="1.0"?>
<contact-info>
<name>Jane Smith</name>
<company>AT&T</company>
<phone>(212) 555-4567</phone>
</contact-info>
Is translated to:
[
'#document' => [ [
'contact-info' => [
[ 'name' => 'Jane Smith' ],
[ 'company' => 'AT&T' ],
[ 'phone' => '(212) 555-4567' ],
],
],
],
];
SEE ALSO
XML::LibXML
There are more modules in the XML namespace than one can shake a stick at.
AUTHOR
Dylan Doxey, <dylan.doxey@gmail.com<gt>
COPYRIGHT AND LICENSE
Copyright (C) 2010 by Dylan Doxey
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.