# XML::Parser::Style::Objects - Objects styler parser - perldoc - [phpMan]

## NAME
    [XML::Parser::Style::Objects](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser%3A%3AStyle%3A%3AObjects/markdown) - Objects styler parser

## SYNOPSIS
      use [XML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown);
      my $p = [XML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown)->new(Style => 'Objects', Pkg => 'MyNode');
      my $tree = $p->parsefile('foo.xml');

## DESCRIPTION
    This module implements [XML::Parser](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser/markdown)'s Objects style parser.

    This is similar to the Tree style, except that a hash object is created for each element. The
    corresponding object will be in the class whose name is created by appending "::" and the
    element name to the package set with the Pkg option. Non-markup text will be in the ::Characters
    class. The contents of the corresponding object will be in an anonymous array that is the value
    of the Kids property for that object.

## SEE ALSO
    [XML::Parser::Style::Tree](https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AParser%3A%3AStyle%3A%3ATree/markdown)

