Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Software error: Can't call method "appendChild" on an undefined value at
Thanks!!!my $xp = XML::XPath->new(filename => $open_this); #####Test my ($parser,$list_item,$file_list,$root_node); eval { $parser = XML::XPath::XMLParser->new( filename => $xp-> $open_ +this); $root_node = $parser->parse; $xp->find('/*', $root_node); }; if ($@) { # if we get an error, include the details in the output. $list_item->appendChild(XML::XPath::Node::Text->new("ERROR par +sing file '$open_this': ". $@) ); $file_list->appendChild($list_item); next FILE; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Path Errors
by Corion (Patriarch) on Apr 04, 2008 at 15:30 UTC | |
by Anonymous Monk on Apr 04, 2008 at 15:52 UTC | |
by Corion (Patriarch) on Apr 04, 2008 at 15:56 UTC | |
|
Re: XML::Path Errors
by pileofrogs (Priest) on Apr 04, 2008 at 17:26 UTC |