rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
but node1 is returning a blank.use XML::Parser; use XML::Parser::EasyTree; $XML::Parser::EasyTree::Noempty=1; my $p = new XML::Parser(Style => 'EasyTree'); my $tree = $p->parse($xml); my $node1 = ${$tree[0]}{name};
<?xml version="1.0" encoding="UTF-8"?> <search_results count="0"> <query>"flaherty jm" [ALL-FIELDS]</query> </search_results>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: understanding XML::Parser
by Thelonius (Priest) on Jul 17, 2006 at 05:57 UTC | |
by rsiedl (Friar) on Jul 17, 2006 at 07:13 UTC | |
by Tanktalus (Canon) on Jul 17, 2006 at 15:54 UTC |