{"responseCode":"200","responseText":"<?xml version="1.0" encoding="UTF-8"?>
<bookings>
<booking id="5381694">
<resource_name id="156376">Lower level 30 x 40</resource_name>
<start type="datetime">2012-11-19 08:30:00</start>
<finish type="datetime">2012-11-19 09:30:00</finish>
<updated_by></updated_by>
<full_name>Dr. John Whitney</full_name>
<phone></phone>
<deleted>false</deleted>
<created_on type="datetime">2012-11-19 16:47:23</created_on>
<updated_on type="datetime">2012-11-19 16:47:23</updated_on>
<schedule id="103918">Space</schedule>
</booking>
<booking id="105789">
<service id="17931">One Hour Full Lower Level</service>
<start type="datetime">2012-11-19 08:30:00</start>
<finish type="datetime">2012-11-19 09:30:00</finish>
<updated_by></updated_by>
<full_name>Dr. John Whitney</full_name>
<deleted>false</deleted>
<created_on type="datetime">2012-11-19 16:47:23</created_on>
<updated_on type="datetime">2012-11-19 16:47:23</updated_on>
<schedule id="103919">Track and Agility Rental</schedule>
</booking>
<booking id="6342561">
<slot id="4002745">
<title>Beginner Agility</title>
<location>1st Floor</location>
<description>New to agility</description>
<start type="datetime">2012-12-31 09:00:00</start>
<finish type="datetime">2012-12-31 10:00:00</finish>
</slot>
<full_name>Dr. John Whitney</full_name>
<updated_by></updated_by>
<waitlisted></waitlisted>
<deleted>false</deleted>
<created_on type="datetime">2012-11-19 16:48:51</created_on>
<updated_on type="datetime">2012-11-19 16:48:51</updated_on>
<schedule id="104343">Beginner agility</schedule>
</booking>
</bookings>
"}
So what I need to do is loop thru this xml to display the data to a user, probably in an html view. I looked at xpath but I'm not sure how to use it in a loop to display something like this:
Space (Lower level 30 x 40), Starts: 2012-11-19 08:30, Ends: 2012-11-19 09:30
Track and Agility Rental (One Hour Full Lower Level), Starts: 2012-11-19 08:30, Ends: 2012-11-19 09:30
Beginner agility (1st Floor,New to agility), Starts: 2012-12-31 09:00, Ends:2012-12-31 10:00
Cheers,
John WhitneyZOHO Creator Developer