22 Apr
2017
22 Apr
'17
2:48 a.m.
Bob Kline schrieb am 21.04.2017 um 16:51:
On Fri, Apr 21, 2017 at 9:10 AM, Stefan Behnel wrote:
The element name feels like an obvious, simple and safe addition to the LogEntry API, though. This could be added independently.
Sorry, meant to respond to this last bit earlier.
Assuming we are providing the xpath to the node, I would think the element name would be redundant, unless we make capturing the xpath optional.
I just checked libxml2's source code and the "node" is only really passed during validation. That suggests that it's always clear for users what tree to look at, and that they can apply the XPath expression when they need further information about the node. Let's leave out the name property then. Stefan