Here is the PHP code you can customize it according to your requirements.
<?php
$xml = new SimpleXMLElement('<root/>');
$track = $xml->addChild('track');
$track->addChild('fieldName1','fieldValue');
$track->addChild('fieldName2','fieldValue');
$track->addChild('fieldName3','fieldValue');
$track->addChild('fieldName4','fieldValue');
Header('Content-type: text/xml');
print($xml->asXML());
?>
Enjoy Coding ..!!
No comments:
Post a Comment