[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Q: Using C#.net, how to convert ASCII text into XM

Subject: Re: Q: Using C#.net, how to convert ASCII text into XML acceptable text?
From: Jirka Kosek <jirka@xxxxxxxx>
Date: Wed, 05 May 2004 23:33:48 +0200
c convert ascii
Shenan Hawkins wrote:

> Hopefully I can get some help with this - sorry if it's not the correct
mailing-list...

You were right, this is not correct mailing list :-)

> Let's assume I have one C# statement:
>
>
> string myString = "This & That";
>
>
> Is there a built in method/function that I can call that will turn the
string contents into something that will work in an XML file? (for instance,
convert "&" to "&amp;"... I know I could do a manual .replace method call, but
I want something intrinsic/better)

Use XmlWriter class. It can do a lot of character escaping and namespace
declaration work for you.

					Jirka

--
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@xxxxxxxx     http://www.kosek.cz
------------------------------------------------------------------
   ProfesionC!lnC- E!kolenC- a poradenstvC- v oblasti technologiC- XML.
         Cvod do XML 3.5.            DocBook 18.-19.5.
         XSLT 24.-26.5.              XML pro vC=vojC!Ee 7.-8.6.
------------------------------------------------------------------

[****** removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.