in reply to Re^3: XML::XPath Question
in thread XML::XPath Question

I don't get it.. a tree is still basically a node, and vice versa... what sets them apart?

Replies are listed 'Best First'.
Re^5: XML::XPath Question
by ikegami (Patriarch) on Nov 10, 2010 at 21:38 UTC
    No. Trees and XML::XPath objects are not nodes, and node objects are not XML::XPath objects. Trees have a node for root, and nodes belong to a tree. There are no is-a relationship between the two, just has-a relationships.
Re^5: XML::XPath Question
by Corion (Patriarch) on Nov 10, 2010 at 20:40 UTC

    No. A tree is an organization of nodes. And to search that tree, you have to employ the "XPath searcher" that lives in XML::XPath. You can't intermix methods from the searcher and the tree.