Click to See Complete Forum and Search --> : weird looking xml


bergold
01-25-2010, 04:30 PM
Hi,

I am able to call this code with the inbuilt xml functions/objects in actionscript but I can't figure out what is what in the code and therefore can't access the data I need.

It is said to be a xml feed generated by php. Is it possible for me to access the element or attribute or whatever it is data in this code?

{"auctions":[{"id":"6994","leader":"M. Baye","leader_bid":"1.859,50 kr","end":"January 25, 2010 18:43:24","active":true,"paused":false,"opens_at":null},{"id":"7265","leader":"Hartmut Bothmann","leader_bid":"83,70 kr","end":"January 25, 2010 18:42:43","active":true,"paused":false,"opens_at":null},{"id":"7266","leader":"Polyzois Papachatzakis","leader_bid":"244,50 kr","end":"January 25, 2010 18:42:57","active":true,"paused":false,"opens_at":null},{"id":"7282","leader":"M. Baye","leader_bid":"89,50 kr","end":"January 25, 2010 18:42:59","active":true,"paused":false,"opens_at":null},{"id":"7307","leader":"Alf Lund","leader_bid":"38,00 kr","end":"January 25, 2010 18:43:35","active":true,"paused":false,"opens_at":null}],"date":"January 25, 2010 18:41:54"}

I just need help to figure out how this xml is built. What is parent, child attribute etc. At first I thought that auctions was an attribute with other attributes in it or something but I couldn't manage to accesss the attribute data. Can you even set up a xml like this?

Thanks for your help!

interactive10
01-25-2010, 04:39 PM
not XML, its called JSON

bergold
01-25-2010, 05:58 PM
Great that they told me it was a xml feed.

Thanks for the help!