# man > Data::DumpXML::Parser(3pm)

## NAME
    [Data::DumpXML::Parser](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML%3A%3AParser/markdown) - Restore data dumped by [Data::DumpXML](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML/markdown)

## SYNOPSIS
     use [Data::DumpXML::Parser](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML%3A%3AParser/markdown);

     my $p = [Data::DumpXML::Parser](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML%3A%3AParser/markdown)->new;
     my $data = $p->parsefile(shift || "test.xml");

## DESCRIPTION
    "[Data::DumpXML::Parser](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML%3A%3AParser/markdown)" is an "[XML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown)" subclass that can recreate the data structure from
    an XML document produced by "[Data::DumpXML](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML/markdown)". 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](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown)":

    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](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML%3A%3AParser/markdown)->new(Blesser => sub {});

## SEE ALSO
    [Data::DumpXML](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumpXML/markdown), [XML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown)

## 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.

