Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML and "&" character...

From: "Jon R" <joreynolds@--------------.--->
To: NULL
Date: 4/1/2004 4:01:00 PM
hello,

I have a program that is generating an XML file based on some data from a
SQL 2000 database.

On this line...
myXmlTextWriter.WriteElementString("SPECIALTY1", dr("Specialty"))

... I am having a problem with the data retruned in the generated XML file.
In the above line "SPECIALTY1" in the XML element and dr("Specialty")) is
the value coming from the database.  The problem is the value in the
database might be "Family & Community Medicine".  When the XML file is
generated it creates the value as "Family &amp; Community Medicine",
obviously  not what I want.

Question: How do I get it to return the "&" character.

Thanks







transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent