Hey Les,

"results.response.result.policyid" refers to the <policyid> tag - if
you do a <cfdump var="#results.response.result.policyid#">, you'll see
that it has a lot of stuff.  I think you're after
#results.response.result.policyid.xmlText#.

Cheers,

Joe

On 2/21/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
> 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:233062
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to