Dom4 1.6.1j: XPath that returns non-node type value possible?

nguyenmallard

New Member
e.g. I want to return the name of a node, i.e. a string, thus/MxML/trades/trade/tradeBody/*[1]/local-name()However when I try to evaluate it with doc.valueOf or doc.selectSingleNode, or whatever else I try I get this error:org.dom4j.InvalidXPathException: Invalid XPath expression: /MxML/trades/trade/tradeBody/*[1]/local-name() Expected node-typeI know what its saying, I am returning a String and not a node, so how do I ask for this string?Thanks.
 
Back
Top