pmc has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use XML::LibXML; my $xml_string = <<EOF; <?xml version="1.0"?> <root> <aaa 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: XML::LibXML getElementsById problem
by mirod (Canon) on Dec 15, 2005 at 16:11 UTC | |
by pmc (Initiate) on Dec 15, 2005 at 16:25 UTC | |
by mirod (Canon) on Dec 15, 2005 at 16:39 UTC | |
|
Re: XML::LibXML getElementsById problem
by santonegro (Scribe) on Dec 15, 2005 at 17:42 UTC | |
by mirod (Canon) on Dec 15, 2005 at 19:19 UTC |