xmlparse works in 8 not in 9
I have a client with a store front. Products come from an xml feed. It works perfectly in CF8. Now we are trying to upgrade to CF9 and the parsing doesn't work.
Here is the code
<cfhttp url="http://sunrisewholesalemerchandise.com/swInventory.xml" method="get" />
<cfif cfhttp.responseheader.status_code EQ 200>
<cfset begin = #Find("<?xml",cfhttp.FileContent)#>
<cfif begin>
<cfscript>
begin = begin -1;
xmlDoc = RemoveChars(CFHTTP.FileContent,1,begin);
x = XMLParse(xmlDoc);
</cfscript>
</cfif>
</cfif>
If I cfdump cfhttp.filecontent I see the xml file. But when it hits the xmlParse(xmlDoc) it gives me a blank. This exact code works on the current site that is CF8.
