Hi,
the Elements returned by XQResultItem.getNode() don't appear to support the EventTarget interface:
org.basex.api.dom.BXElem cannot be cast to org.w3c.dom.events.EventTarget
This means we need to serialize the node to an XML string, then parse that string to obtain a org.w3c.dom.Node instance that supports this interface.
This is awkward and highly inefficient.
Why doesn't BaseX support EventTarget (or use the existing DOM implementation provided with Java, which does support DOM events?)
- Godmar