$perl newxmltest.pl request: action_request: action: instance_information: application_type: application_name: environment: application_host_ip: application_host_name: request: action_request: action: instance_information: application_type: application_name: environment: application_host_ip: application_host_name: request: info_request: action: XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element XML::LibXML::Element Context node set as |instruction_request| XML::LibXML::NodeList Size of action requests is 22 String value of action requests is " START SomeApp app_name QC 10.10.24.56 somehost.domain_name.tld STOP SomeApp2 instance_name QC 172.16.24.56 somehost.domain_name.tld GET_INFO " To literal of action requests is " START SomeApp app_name QC 10.10.24.56 somehost.domain_name.tld STOP SomeApp2 instance_name QC 172.16.24.56 somehost.domain_name.tld GET_INFO " To literal of action requests is "XML::LibXML::Element=SCALAR(0x81c770)" To element name is "action" To node value is "START" ----------------------------------------------------------- Trying to get the requests directly with an XPath expression ... ----------------------------------------------------------- XML::LibXML::NodeList Size of action requests is 0 String value of action requests is "" To literal of action requests is "" Use of uninitialized value in concatenation (.) or string at newxmltest.pl line 127. To literal of action requests is "" Can't call method "nodeName" on an undefined value at newxmltest.pl line 129.