I have tried for so long to understand this XML file to parse it but I cant make it.
[CODE]
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<se:List xmlns:se=”http://www.”>
<se:Event timestamp=”2019-07-01 10:56:19″>
<se:Date endcet=”2019-07-02″ endutc=”2019-07-01″ startcet=”2019-07-02″ startutc=”2019-07-01″ weekdaycet=”1″ weekdayutc=”1″ weeknocet=”27″ weeknoutc=”27″/>
<se:StartTime endcet=”01:25:00″ endutc=”23:25:00″ startcet=”00:40:00″ startutc=”22:40:00″/>
</se:Event>
<se:Event timestamp=”2019-07-01 10:56:20″>
<se:Date endcet=”2019-07-02″ endutc=”2019-07-01″ startcet=”2019-07-02″ startutc=”2019-07-01″ weekdaycet=”1″ weekdayutc=”1″ weeknocet=”27″ weeknoutc=”27″/>
<se:StartTime endcet=”01:55:00″ endutc=”23:55:00″ startcet=”01:25:00″ startutc=”23:25:00″/>
</se:Event>
</se:List>
[CODE]
$xml = simplexml_load_file(‘file.xml’);
print_r($xml);
gives the result:
**SimpleXMLElement Object ( )
I have no idea where to go from there