1Parser::Style::Objects(U3s)er Contributed Perl DocumentatPiaornser::Style::Objects(3)
2
3
4
6 XML::Parser::Style::Objects - Objects styler parser
7
9 use XML::Parser;
10 my $p = XML::Parser->new(Style => 'Objects', Pkg => 'MyNode');
11 my $tree = $p->parsefile('foo.xml');
12
14 This module implements XML::Parser's Objects style parser.
15
16 This is similar to the Tree style, except that a hash object is created
17 for each element. The corresponding object will be in the class whose
18 name is created by appending "::" and the element name to the package
19 set with the Pkg option. Non-markup text will be in the ::Characters
20 class. The contents of the corresponding object will be in an anonymous
21 array that is the value of the Kids property for that object.
22
24 XML::Parser::Style::Tree
25
26
27
28perl v5.30.0 2019-07-26 Parser::Style::Objects(3)