Help for this page

Select Code to Download


  1. or download this
    ...
      <inventors type="array">
    ...
        </inventor>
      </inventors>
    ...
    
  2. or download this
    my $xml_to_hash = XMLin($xml_file,
      #ForceArray => 0,
      #KeyAttr    => {},
     );
    
  3. or download this
    $VAR1 = {
      'inventors' => {
    ...
         },
        'type' => 'array'
      },
    
  4. or download this
    $VAR1 = {
      'inventors' => [
    ...
          'type' => 'array'
        }
       ], ...
    
  5. or download this
    foreach my $inventors(%{$xml_to_hash->{inventors}}){
      if ($inventors->{inventor}->{number}->{content} == 1){
         print $inventors->{inventor};
         }
      }
    
  6. or download this
    foreach my $inventor(%{$xml_to_hash->{inventors}->{inventor}}){
       if ($inventor->{number}->{content} == 1){
          print $inventor;
          }
       }