XmlTextWriter and empty values

  • Thread starter Thread starter Ryan Breakspear
  • Start date Start date
R

Ryan Breakspear

Hi all,

Is there a way I can force the XmlTextWriter to put in <TAG></TAG> for tags
with no values rather than <TAG />?

Also does anyone know if it's possible to put \r\n characters in an
attribute using WriteAttributeString, without them being escaped?

Thanks in advance

Ryan
 
Sorry slept on the send button:
I guess you can use the WriteRaw method on the XmlTextWriter
 
Oh yes, thanks. Looked through all the methods but missed that one!

I must have slept too
 
Back
Top