from Mark D Anderson, mda@discerning.net
with input of:
<stuff:Blah name="test" xmlns:stuff="http://stuff.org/"/>
the Attr object for name returns true for hasNamespaceURI(),
yet the value of getNamespaceURI() is the empty string.
This is inconsistent; an empty namespace is illegal.
For now I'm working around this by putting
(!n.hasNamespaceURI() || n.getNamespaceURI().empty())
into my code.