View on
MetaCPAN
Jonathan Eisenzopf > XML-Dumper-0.4 > XML::Dumper

Download:
XML-Dumper-0.4.tar.gz

Dependencies

Annotate this POD

Related Modules

Data::Dumper
XML::Simple
XML::Twig
XML::Parser
Parse::RecDescent
XML::DOM
XML::XPath
XML::Writer
Data::Serializer
XML::LibXML
more...
By perlmonks.org

CPAN RT

New  8
Open  1
View/Report Bugs
Module Version: 0.4   Source   Latest Release: XML-Dumper-0.81

NAME ^

XML::Dumper - Perl module for dumping Perl objects from/to XML

SYNOPSIS ^

 # Convert Perl code to XML
 use XML::Dumper;
 my $dump = new XML::Dumper;
 $data = [
          {
            first => 'Jonathan',
            last => 'Eisenzopf',
            email => 'eisen@pobox.com'
          },
          {
            first => 'Larry',
            last => 'Wall',
            email => 'larry@wall.org'
          }
         ];
 $xml =  $dump->pl2xml($perl);


 # Convert XML to Perl code
 use XML::Dumper;
 my $dump = new XML::Dumper; 

 # some XML
 my $xml = <<XML;
<perldata>
 <scalar>foo</scalar>
</perldata>
XML

 # load Perl data structure from dumped XML
 $data = $dump->xml2pl($Tree);

DESCRIPTION ^

XML::Dumper dumps Perl data to a structured XML format. XML::Dumper can also read XML data that was previously dumped by the module and convert it back to Perl.

This is done via the following 2 methods: XML::Dumper::pl2xml XML::Dumper::xml2pl

AUTHOR ^

Jonathan Eisenzopf <eisen@pobox.com>

CREDITS ^

Chris Thorman <ct@ignitiondesign.com> L.M.Orchard <deus_x@pobox.com> DeWitt Clinton <dewitt@eziba.com>

SEE ALSO ^

perl(1), XML::Parser(3).

syntax highlighting: