Help for this page

Select Code to Download


  1. or download this
    my $parser = XML::LibXML->new();
    my $doc = $parser->parse_file("main_file.XML");
    ...
    
    my @nodes_from_main= $doc0->findnodes('//path/to/element/text()');
    my @nodes_from_second = $doc1->findnodes('//path/to/element/text()');
    
  2. or download this
    
    for my $node_main (@nodes_from_main)
    ...
        do nothing;
      }
    }
    
  3. or download this
    <doc>
    <id>
    ...
    </id>
    </doc>
    <p>I need to print everything within elements </p>