NamedNodeMap does not inherit from Node.
There are also experimental methods that give this class more mapping behavior. You can use them or you can use the standardized getAttribute*() family of methods on the Element objects.
See About this document... for information on suggesting changes.