Hi everyone, I tried to parse a xml data but i couldnt figure it out.
I get this error:
Complex object types cannot be converted to simple values.
This is my code :
<cfset the_url = 'https://www.goodreads.com/author/list/210456?format=xml&key=xxxxxxxxxxxxxxxx' />
<cfhttp url="#the_url#" method="get" result="Results" timeout="999">
<cfset asd = XmlParse(Results)>
Do a dump of the results var. Is it xml? And nothing else?
Some other tips:
Let us know how it goes.
Yes is a xml file
I find the soluiton i change the variable as 'Results.filecontent' and it worked.
But still dont know why didn't work at the first time
Because what is returned is more than just the content. It also returns header information and some other things, so you have to specify "filecontent", unless you're CFDUMPing the result.
^ _ ^