XML encoding using C#


G

Gilgamesh

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
 
Ad

Advertisements

G

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
 
C

clintonG

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
 
Ad

Advertisements

A

AlanT

you can use the XMLTextWriter to write to a memorystream

hth,
Alan.
 

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

Similar Threads

Encode a String for Use in XML 4
XML Encoding 2
Xml Serialization and Xml Encoding 1
C# and encodings 30
Encoding XML troubles 2
XML encode method? 3
Encoding string for xml 9
Xml Encoding Problem!!! 7

Top