Strange behaviour of & in XML
Hi,
I am using CF 8 with IIS.
Following is my code.
<cfscript>
XMLpacket = XmlNew();
XMLpacket.xmlRoot = XmlElemNew(XMLpacket, "test");
XMLpacket.xmlRoot.XmlChildren[1] = XmlElemNew(XMLpacket, "spcial_name");
XMLpacket.xmlRoot.XmlChildren[1].XmlText = "this is a test for & and '');
</cfscript>
when retrieving value for spcial_name, it returns following string.
"this is a test for & and '"
I understand why it converted & to &, but it also converts ' to '
Is this a bug or should I try something else?
Please suggest.
Nishant.
