How do you use XPath to extract the root element's name from XML?
I could do this in KNIME 2.11 using the (now deprecated) XPath node with this instruction:
But this no longer seems to work with the new KNIME 2.12 XPath node. I am now getting the exception:
Execute failed: javax.xml.xpath.XPathExpressionException: org.apache.xpath.XPathException: Can not convert #STRING to a NodeList!
The exception implies that I'm trying to output a String to a NodeList, but the node's output has been set to be a String and none of the NodeList options seem to work. I've attached a workflow to illustrate the problem.
Is this a bug?