in reply to Re^3: XML::LibXML - parsing question!!
in thread XML::LibXML - parsing question!!

I was doing this...

$action_requests = $xpc->findnodes('//admin_server:request/*/action');

Replies are listed 'Best First'.
Re^5: XML::LibXML - parsing question!!
by ikegami (Patriarch) on Dec 19, 2009 at 17:34 UTC
    //admin_server:request/*/action

    is short for

    /descendant::admin_server:request/child::*/child::action

    There are three node tests in that path

    • descendant::admin_server:request
    • child::*
    • child::action

    There is one prefix in that path

    • admin_server
    There are two namespaces referenced by that path
    • Which ever namespace is associated with admin_server (referenced by descendant::admin_server:request)
    • The null namespace (referenced by child::action)

    (* matches nodes in any namespace)