in reply to Help with XML Parsing
merlyn has written a column on using XML::LibXML with HTML, which may be of interest.#!/usr/bin/perl use strict; use warnings; use XML::LibXML; my $parser = XML::LibXML->new; my $dom = $parser->parse_file( 'test.xml' ); # load file my @wanted_nodes = $dom->findnodes( './/an/xpath/here' ); # select print $_->toString for @wanted_nodes; # output
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with XML Parsing
by dbonneville (Acolyte) on Aug 23, 2007 at 15:45 UTC |