The current XPath support requires the node's to provide a toString implementation in line with what we would like to call the name in XPath expressions.
We currently force nodes to define a toString by making it abstract on AbstractNode. The name is not appropriate, and it would be easy to generate a non-useful implementation by the IDE.
We should probably add a new, more-specific, String getXPathNodeName() method on AbstractNode, and use that instead.
The current XPath support requires the node's to provide a
toStringimplementation in line with what we would like to call the name in XPath expressions.We currently force nodes to define a
toStringby making it abstract onAbstractNode. The name is not appropriate, and it would be easy to generate a non-useful implementation by the IDE.We should probably add a new, more-specific,
String getXPathNodeName()method onAbstractNode, and use that instead.