Your first step is to CFDUMP XMLFile, this will give you a nice clear
picture of the structure (structure of a structure of an array etc.). Then
you can start to build up the correct syntax to refer to a specific element.

Heres a snippet of code that I worked out to read an RSS feed it might be
useful as an example.

<cfloop from="1" to="#arraylen(mydoc["rdf:RDF"]["item"])#" index="i">
   <cfset
querySetCell(getBlogs,"title",mydoc["rdf:RDF"]["item"][i]["title"].xmltext,i)>
   <cfset
querySetCell(getBlogs,"description",mydoc["rdf:RDF"]["item"][i]["description"].xmlText,i)>
   <cfset
querySetCell(getBlogs,"link",mydoc["rdf:RDF"]["item"][i]["link"].xmlText,i)>
   <cfset rawpostdate = mydoc["rdf:RDF"]["item"][i]["dc:date"].xmltext>
   <cfset postdate =
createdate(left(rawpostdate,4),mid(rawpostdate,6,2),mid(rawpostdate,9,2))>
   <cfset querySetCell(getBlogs,"postdate",postdate,i)>
      <cfset
querySetCell(getBlogs,"creator",mydoc["rdf:RDF"]["item"][i]["dc:creator"].xmltext,i)>
</cfloop>

On 5/26/06, Ben Dyer <[EMAIL PROTECTED]> wrote:
>
> OK, I've spent a lot of time looking at the documentation and it's
>
>
-- 
Mike T
Blog http://www.socialpoints.com/


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