> I'm running CFMX 6.1 with the latest cumulative update from 
> Macromedia (we installed the updater patch about a month 
> ago).  Recently, we've hit a problem with parsexml() that I 
> cannot figure out.  It seems to choke on certain entity 
> references, but not all of them.  I've got some test code to 
> illuminate the problem:
> 
> These work (just a few examples):
> <cfset parsedXml = xmlParse("<rootnode>&amp;</rootnode>")>
> <cfset parsedXml = xmlParse("<rootnode>&lt;</rootnode>")>
> <cfset parsedXml = xmlParse("<rootnode>&gt;</rootnode>")>
> 
> These bomb (again, just a few examples):
> <cfset parsedXml = xmlParse("<rootnode>&nbsp;</rootnode>")>
> <cfset parsedXml = xmlParse("<rootnode>&mdash;</rootnode>")>
> <cfset parsedXml = xmlParse("<rootnode>&pound;</rootnode>")>
> 
> I've searched the web and have found precious little 
> information about this.  I suppose it could be related to the 
> cumulative updater, but that somehow seems unlikely.

The first three are valid XML entities. There are only five built-in XML
entities - the three you have, plus "&quot;" and "&apos;". The second three
are not, unless you've defined them within a DTD somewhere (which you
haven't in this example). Even if you do define them within a DTD, I don't
know how CF's XML parser will deal with that.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201600
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to