Arrays and XML
I'm attempting to create a pricing module for Amazon. Basically, I give Amazon ten items at a time to get all pricing information for each item. The data is being returned in XML.
What I'd LIKE to do is take the first XML response that contains up to the first ten offers (sorted by seller name, includes prices for new, used, collectible, and refurbished), the total number of offer pages, and some other tidbits that I don't need, and put what I need into an array to hold on to while I make any necessary additional calls to Amazon for subsequent offers if there are more than ten offers for any item.
Then take that array and push the data into a table on my database for sorting and whatnot.
Problem is: getting the XML data from Amazon into an array. I'm using XMLParse() to at least get it into a CF struct, but creating a specific array is becoming difficult ( I don't work with arrays very often. )
I'm getting the following error message : You have attempted to dereference a scalar variable of type class coldfusion.runtime.Array as a structure with members.
How do I declare members of an array?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)