I have an array created in php:
$files[] = array(
"filename"=>$file,
"intLatitude"=>$intLatitude,
"intLongitude"=>$intLongitude);
I need to create a XML-file with the php-file informations included. It should look so:
The XML-file should look like this:
<metadata>
<link href=" <text>Garmin International</text>
</link>
<bounds minlat="55.74998330" minlon="12.21786460" maxlat="55.79861700" maxlon="12.26445030"/>
<extensions>
<time xmlns=" </extensions>
</metadata>
---------and then loop the array:
<wpt lat="55.79854" lon="12.22697"> ----> the variables $intLatitude and $intLongitude
<extensions>
<html>
<![CDATA[
<a href=" target="_blank"><img src="imagefilename" /></a>--->the $file
]]>
</html>
</extensions>
</wpt>
Please help me to create a procedure to generate this XML-file
$files[] = array(
"filename"=>$file,
"intLatitude"=>$intLatitude,
"intLongitude"=>$intLongitude);
I need to create a XML-file with the php-file informations included. It should look so:
The XML-file should look like this:
<metadata>
<link href=" <text>Garmin International</text>
</link>
<bounds minlat="55.74998330" minlon="12.21786460" maxlat="55.79861700" maxlon="12.26445030"/>
<extensions>
<time xmlns=" </extensions>
</metadata>
---------and then loop the array:
<wpt lat="55.79854" lon="12.22697"> ----> the variables $intLatitude and $intLongitude
<extensions>
<html>
<![CDATA[
<a href=" target="_blank"><img src="imagefilename" /></a>--->the $file
]]>
</html>
</extensions>
</wpt>
Please help me to create a procedure to generate this XML-file