Change your query to /root/node/text()
XPath spec
In reply to Re: Mixed XML content with XML::LibXML by ikegami in thread Mixed XML content with XML::LibXML by lobeydosser