Do a cfdump on 'results' and see what you get?

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 21, 2006 2:03 PM
To: CF-Talk
Subject: ARgh! Display XML

I've got a form posting out to another server and returning an XML
response.

This:
<cfoutput>#cfhttp.filecontent#</cfoutput>

Will output this:

<?xml version="1.0" encoding="iso-8859-1"?>
<response>
<successful>1</successful>
<mode>test</mode>
<result>
        <policyid>129120060221164444</policyid>
        <tripcost>2000</tripcost>
        <premium>21.8</premium>
        <commission>4.36</commission>
</result>
</response>


I need to display the policyid from the above further down my CF page, 
so I parse the above and set a variable "results":

<cfset results=XMLParse(cfhttp.filecontent)>


.....and then try to output that further down the page:

#results.response.result.policyid#


But what I get is "[EMAIL PROTECTED]" for the above 
output instead of the expected "129120060221164444"


Suggestions?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233042
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