Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Data::DumpXML::Parser

Name Data::DumpXML::Parser
Version 1.01
Located at /usr/share/perl5
File /usr/share/perl5/Data/DumpXML/Parser.pm
Is Core No
Search CPAN for this module Data::DumpXML::Parser
Documentation Data::DumpXML::Parser
Module Details Data::DumpXML::Parser

NAME

Data::DumpXML::Parser - Restore data dumped by Data::DumpXML


SYNOPSIS

 use Data::DumpXML::Parser;
 my $p = Data::DumpXML::Parser->new;
 my $data = $p->parsefile(shift || "test.xml");


DESCRIPTION

Data::DumpXML::Parser is an XML::Parser subclass that can recreate the data structure from an XML document produced by Data::DumpXML. The parserfile() method returns a reference to an array of the values dumped.

The constructor method new() takes a single additional argument to that of XML::Parser:

Blesser => CODEREF
A subroutine that is invoked to bless restored objects. The subroutine is invoked with two arguments: a reference to the object, and a string containing the class name. If not provided, the built-in bless function is used.

For situations where the input file cannot necessarily be trusted and blessing arbitrary Classes might give malicious input the ability to exploit the DESTROY methods of modules used by the code, it is a good idea to provide a no-op blesser:

  my $p = Data::DumpXML::Parser->new(Blesser => sub {});


SEE ALSO

the Data::DumpXML manpage, the XML::Parser manpage


AUTHOR

Copyright 2001 Gisle Aas.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026