Help for this page

Select Code to Download


  1. or download this
    my $tmp = $parse->parse($address);
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $parse = new XML::Parser(Style => 'Objects');
    my $address = "<LOC><HNO></HNO><STN>Eagle Way</STN><MCN>Gotham City</M
    +CN></LOC>";
    print Dumper $parse->parse($address);
    
  3. or download this
    C:\tmp>test.pl
    $VAR1 = [
    ...
                                 ]
                     }, 'main::LOC' )
            ];
    
  4. or download this
    use strict;
    use warnings;
    ...
    my $address = "<LOC><HNO></HNO><STN>Eagle Way</STN><MCN>Gotham City</M
    +CN></LOC>";
    my $ref = XMLin($address);
    print Dumper $ref;
    
  5. or download this
    C:\tmp>test.pl
    $VAR1 = {
    ...
              'HNO' => {},
              'STN' => 'Eagle Way'
            };