#363 getNamedAttribute() fails with DOM

v8.4
closed
Michael Kay
5
2012-10-08
2005-06-08
Michael Kay
No

The methods getNamedAttribute() and
getNamedAttributeNS() fail with a ClassCastException
when using a DOM wrapper over the Saxon native tree
interface.

Source fix:

in DOMAttributeMap.java, lines 39 and 93, change

return (Node)att;

to

return NodeOverNodeInfo.wrap(att);

Michael Kay

Discussion