Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2006

Tip: Looking for answers? Try searching our database.

XML encoding using C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gilgamesh - 31 Mar 2006 01:29 GMT
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
clintonG - 31 Mar 2006 01:55 GMT
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
Gilgamesh - 31 Mar 2006 23:03 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.