Removed namespace specific code for attributes (DOM seems to automatically expect attributes to be in the document namespace).