Help for this page

Select Code to Download


  1. or download this
    $VAR1 = {
              'inventors' => 'no content',
    ...
              'inventor' => 'as array no content',
              'city,country,name,upper-name' => 'content'
            };
    
  2. or download this
    {
      'inventors' => {
    ...
                     'type' => 'array'
                   }
    };
    
  3. or download this
    {
      'inventors' => {
    ...
                     'type' => 'array'
                   }
    };
    
  4. or download this
    {
      'inventors' => {
    ...
                          }
                   }
    };
    
  5. or download this
    use Data::Dumper;
    use XML::Rules;
    ...
    my $data = $parser->parsefile('c:\temp\inventors.xml');
    #print Dumper($data);
    print "The 1st inventor was $data->{inventors}{1}{name}\n";