Below is a sample of the XML code.
<?xml version="1.0" encoding="utf-8"?>
<event>
<VIP-URL nil="true"/>
<active type="boolean">true</active>
<ages nil="true"/>
<close type="datetime">2000-01-01T03:00:00+00:00</close>
<closed-message nil="true"/>
<cover nil="true"/>
<created-at type="datetime">2010-09-20T00:18:37+00:00</created-at>
<date type="date">2010-10-29</date>
<description nil="true"/>
<guestlist-URL nil="true"/>
<guestlist-conditions nil="true"/>
<home-URL nil="true"/>
<id type="integer">9434</id>
<myspace-URL nil="true"/>
<open type="datetime">2000-01-01T22:00:00+00:00</open>
<public-guestlists type="boolean">true</public-guestlists>
<tickets-URL>yes</tickets-URL>
<tickets-sold-count type="integer">0</tickets-sold-count>
<time type="datetime" nil="true"/>
<title>Halloween with DJ Spider</title>
<updated-at type="datetime">2010-09-21T21:46:31+00:00</updated-at>
<wiki-name nil="true"/>
</event>
I have been able to retrieve the value in all the fields I have needed thus far using the simplexml parser. Something like below below:
/*This returns the something like above...*/
$xml_event = simplexml_load_file($BASE_URL.'venues/'.$venue.'/events/'.$eventid.".xml".$login);
$event = $xml_event->children();
echo $event->id;
echo $event->title;
echo $event->open;
echo $event->tickets-URL;
Everything prints except the tickets-url. I actually have this problem with every key with ''url' appended to the end. Any help would be greatly appreciated.
THanks.