Resource: http://www.w3schools.com/php/php_xml_simplexml.asp
I wasn't able to Google it since I don't know how to form question.
So lets say the xml file is
<?xml version="1.0" ?>
<major>
<point>Tower</point>
</major>
</xml>
I can retrieve it by using PHP:
<?php
$file = simplexml_load_file("file.xml");
echo "Well, the point in on ". $file->point .".";
?>
But how do I retrieve it when xml is:
<?xml version="1.0" ?>
<major>
<id>1</id>
<point>Tower</point>
</major>
<major>
<id>2</id>
<point>Castle</point>
</major>
</xml>
How to say give me $file->point with id 1
?