• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

XML parsing !!

New Here ,
Jun 26, 2006 Jun 26, 2006

Copy link to clipboard

Copied

having this error and Its because the xml has some value containing "&". Aren't you allowed to have this chr??

reading my xml liike this and is crapping out at this line <CFSET MyXml = XmlParse(MyXmlCode)>

<CFFILE ACTION="READ" FILE="#MyXmlFile#" VARIABLE="MyXmlCode">
<CFSET MyXml = XmlParse(MyXmlCode)>
TOPICS
Advanced techniques

Views

237

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 26, 2006 Jun 26, 2006

Copy link to clipboard

Copied

> having this error and Its because the xml has some value containing "&". Aren't
> you allowed to have this chr??

In short: no.

Medium version: & is a "reserved symbol" in XML.

Long version: http://www.w3.org/TR/REC-xml/#syntax

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 26, 2006 Jun 26, 2006

Copy link to clipboard

Copied

LATEST
um, I thought you can have & as long as its part of an entity like & but you cant have one on its own like 'Sanford & Son

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation