XMLParse problem when using XML
CF seems to have problems parsing XML that starts like this:
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfRateInfo>
instead of
<ArrayOfRateInfo xmlns="http://schemas.datacontract.org/2004/07/SingletonRateService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
Can you advise why this is so?
XmlSearch never returns data when using the latter example even when usign XMLParse
<cfset xmlCCY=XMLParse("http://site.com/rateservice.svc/")>
<cfscript>
selectedElements = XmlSearch(xmlCCY, "/ArrayOfRateInfo");
for (i = 1; i LTE ArrayLen(selectedElements); i = i + 1)
writeoutput(selectedElements.XmlText & "<br>");
</cfscript>
