Hi,
I'm trying to create a chunk of XML where I want all the entities to be
encoded properly. However, I don't really want to use XmlTextWriter
because I don't want to XML to go into a file on disk.
Is there a simple utility method which will atke a string and an
encoding and encode it as XML properly such that it could then be
included in a CDATA section in an XML document?
Is it possible to use the XmlWriter base class and redirect output to a
string variable? Or would creating an XML DOM object in emmory be the
best way to go?
Thanks
Simon