Research the XmlTextWriter class.
<%= Clinton Gallagher
> I've a string which needs to be converted to valid XML string. The
> original string might have characters such as "%", "!", "+", etc.
> Is there any function available in C# that could do this?
> Thanks,
> Gilgamesh
This is good, but how do I keep this XML document in memory? This class
requires an output file and, in my case, I can't have any output file. The
XML stream is to be passed to another class using parameters.
_G
> Research the XmlTextWriter class.
>
[quoted text clipped - 5 lines]
>> Thanks,
>> Gilgamesh
clintonG - 31 Mar 2006 23:22 GMT
Your first RFI didn't ask for help designing your application. Since there's
several ways to answer your latest question perhaps asking at
news://microsoft.public.dotnet.xml will attract the attention of somebody
who knows an optimal solution.
<%= Clinton Gallagher
> This is good, but how do I keep this XML document in memory? This class
> requires an output file and, in my case, I can't have any output file. The
[quoted text clipped - 10 lines]
>>> Thanks,
>>> Gilgamesh
AlanT - 01 Apr 2006 00:33 GMT
you can use the XMLTextWriter to write to a memorystream
hth,
Alan.