Title:
Bug 80517:the isXML() function returns false if there is a ">" character in an XML attribute
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Christopher Secord / Christopher Secord (csecord)
Created: 10/29/2009
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 251028 / 260171
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 1
Problem:
the isXML() function returns false if there is a ">" character in an XML attribute. Note that the XML standard does not require these characters to be escaped inside of attributes. As proof of this, xmlParse() and xmlSearch() work when a ">" character is inside the XML.
Method:
<cfset xmlString = "<?xml version='1.0' encoding='UTF-8'?><root attr='this > is valid!'/>"><cfoutput>#isXML(xmlString)#</cfoutput><cfdump var="#xmlParse(xmlString)#">
Result:
isXML returns false if there is a ">" character in an XML attribute.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040360
External Customer Info:
External Company:
External Customer Name: Christopher Secord
External Customer Email: 5CF32243466720B59920154A
External Test Config: 10/29/2009
Attachments:
Comments: