I use javascript xpath queries (document.evaluate(...)) to read and modify parts of xml/svg/html documents.
Setting the nodeValue of queried element and text nodes is no problem. but when setting attribute values, it is indeed set, but not reflected on the attribute DOM Node.
It looks like xpath queries for attribute nodes return (name,value) pairs and not the attribute node.
Why is it so?
How can I circumvent it?