System.Xml namespace, best use of XmlTextWriter

R

Random

With all the new classes available in the System.Xml namespace I often find
myself wondering what the best method is for certain tasks. I'm trying to
stay away from the heavy XmlDocument, it seems the other classes were
created to provide better alternatives. Many times, I find myself wanting
to create an in-memory Xml string that I do NOT want to persist to a file or
write to a context or stream. I like the XmlTextWriter, but since it needs
one of these in it's constructor, I don't know how or if I can use it to
quickly construct an Xml string. TIA
 

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

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top