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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top