im outputting an xml file within and am struggling to find how to output this line:-

<wsse:Password Type="">PASSWORD</wsse:Password>

im trying this:-

objWriter.WriteElementString("wsse:Password", "PASSWORD");
objWriter.WriteAttributeString("Type", "");

but on running i get this error:-

Token StartAttribute in state Content would result in an invalid XML document.

im guessing its cos the element string has already been created ie close tag added and wont accept the attribute.

there must be a way to do this... anyone help?