dumpxml::parser(3)

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

The "Data::DumpXML::Parser" is an "XML::Parser" subclass
that will recreate the data structure from the XML docu
ment 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 for blessing of restored
objects. The subroutine is invoked with two argu
ments; a reference to the object and a string contain
ing 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
the ability of malicious input to exploit the DESTROY
methods of modules used by the code it is a good idea
to provide an noop blesser:

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

SEE ALSO

Data::DumpXML, XML::Parser

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.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout