in reply to Re: XML::LibXML getElementsById problem
in thread XML::LibXML getElementsById problem
use strict; use XML::LibXML; my $xml_string = <<EOF; <?xml version="1.0"?> <root> <aaa xml:id='test'> <bbb/> </aaa> </root> EOF my $parser = XML::LibXML->new(); my $doc = $parser->parse_string($xml_string) || die; my $elem = $doc->getElementsById('test'); print STDERR $elem."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::LibXML getElementsById problem
by mirod (Canon) on Dec 15, 2005 at 16:39 UTC |