http://qs321.pair.com?node_id=918670


in reply to XML lite unblessed reference

The selectNodes returns an array reference, not an blessed object:
my $nodes = $doc->selectNodes('/perldata/hello'); print ref($nodes), "\n"; =prints ARRAY =cut

Replies are listed 'Best First'.
Re^2: XML lite unblessed reference
by Anonymous Monk on Aug 05, 2011 at 03:49 UTC
    What do you suppose this means?
    'attributes' => bless( [], 'XML::DOM::Lite::NodeList' ),
    XML::DOM::Lite::NodeList - blessed array ref for containing Node objects
Re^2: XML lite unblessed reference
by lfast (Initiate) on Aug 08, 2011 at 16:31 UTC
    Thanks. I thought I was getting a list of Nodes, not an array.

      Thanks. I thought I was getting a list of Nodes, not an array.

      Um, an array is a list of nodes, and you're supposed to be getting both (blessed array reference).