This is my XPath operation:
XPathExpression source = xpath.compile("@source/text()"); I'm looping over a node list created by another XPath operation on the main document. So I'm calling source like this:
(NodeList)source.evaluate(list.item(x), XPathConstants.NODESET); The resulting node list is always empty. Why is that?