I originally had a php file pulling in data from another php file. However, I have to change the second php file to an xml file. My question is, how do I read the string between certain tags in the php file using SimpleXML. For Example, here is my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<XMLExample>
<Name>ExampleName</Name>
<Info>ExampleInfo</Info>
<KMLFile>ExampleKML</KMLFile>
</XMLExample>
I previously had this in my php file:
if(strlen($KMLFile)>0){
#echo "<a id=\"links\" href=\"/$place/Area/$KMLFile\">KML File</a>
";
echo "<a id=\"links\" href=\"/media/$place/markup/xml/$KMLFile\">KML File</a>
";
}
What I can't figure out is how to change the php code to read the data from the XML file. Any help would be greatly appreciated! Thanks!