Writes an attribute to the current element. An Exception is thrown if this function is called immediately after WriteEndElement().