[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 acc eptable text?
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 5 May 2004 16:17:45 -0500
c ascii
Hi Shenan,

Not that I know of - but for example, if you use the DataSet, there's no
need, since the WriteXml method does it for you. It does it simply because
its output will be well-formed XML. The DataSet can even expose your
relational data as XML, even when you loaded the data as a normal recordset.

In general, getting output as XML in .NET is trivial because the whole
communication in the framework is based on XML.

The following article may help you a bit further regarding the special
characters:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316063

HTH,
<prs/>
http://www.pietsieg.com
http://www.pietsieg.com/dotnetnuke
Contributor on www.ASPToday.com
Co-author on "Professional ASP.NET XML with C#", July 2002 by Wrox Press


-----Original Message-----
From: Shenan Hawkins [mailto:shenan@xxxxxx] 
Sent: Wednesday, May 05, 2004 1:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Q: Using C#.net, how to convert ASCII text into XML
acceptable text?

 

Hopefully I can get some help with this - sorry if it's not the 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)
 
 
TIA!,

	Shenan

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.