Avoiding setAttributeNS when creating new attribute as assigning a namespace causes XMLSerializer to add prefixes to attributes that are in the same namespace as the parent element.  Accommodating the lack of namespace on attributes elsewhere
Fixed retrieval of values from existing attributes after setAttibuteNS change