Hi Ade,
Have tried this and no luck:
<cfscript>URLToPull = "#application.siteurl#stock/stock.xml";</cfscript>
<cfhttp url="#URLToPull#" method="GET" timeout="15"></cfhttp>
<cfscript>
XMLContent = trim(cfhttp.filecontent);
XMLContent = XMLParse(XMLContent);
</cfscript>
<cfset showitems = #ArrayLen(XMLContent.shop.stock.item)#>
<cfoutput>
#tostring(xmlcontent.shop.shopname)#
</cfoutput>
I'm really confused because I can read an rss feed with no problems using:
<cfoutput>
<cfloop from="1" to="#showitems#" index="idx">
#XMLContent.rss.channel.item[idx].pubdate.xmlText#<br>
<a
href="#XMLContent.rss.channel.item[idx].link.xmlText#">#XMLContent.rss.chann
el.item[idx].title.xmlText#</a><BR>
#ParagraphFormat(ReplaceNoCase(XMLContent.rss.channel.item[idx].description
..xmlText, "<", "<", "ALL"))#
</cfloop>
Feed provided by:<BR>
<a href="#XMLContent.rss.channel.image.link.xmlText#">
<img src="#XMLContent.rss.channel.image.url.xmlText#"
alt="#XMLContent.rss.channel.image.title.xmlText#" border="0">
</a><br>
#XMLContent.rss.channel.title.xmlText#<BR>
#XMLContent.rss.channel.description.xmlText#<BR>
</cfoutput>
The xml doc also looks fine:
http://www.pagan-crystals.co.uk/stock/stock.xml
I'm sure I'm doing something daft!?
Jenny
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227239
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