After some research, this is a common failing of XPath in general - not a problem with PaquetBuilder.
When the XML document contains a !DOCTYPE statement, XPath fails to read PathToNode. This seems to be the case in most scripting languages. Fortunately in my case, the DOCTYPE statement served...