Help for this page

Select Code to Download


  1. or download this
    my $parser = XML::LibXML->new() or die $!;
    my $tree = $parser->parse_file('content.xml') or die $!;
    my @nodes = $tree->findnodes('//p');
    
  2. or download this
    my @nodes = $tree->findnodes('//text:p');
    
  3. or download this
    my @nodes = $tree->documentElement->findnodes('//text:p');