+1 vote
in Programming by (170 points)
edited by
Hi all,

I need your help.

I want to make a sitemap, using PHP and SQL, and how I show data as XML format.

1 Answer

+1 vote
by (490 points)
selected by
Best answer
you can use following code to do this
$string = <<<XML
$xml = new SimpleXMLElement($string);
echo $xml->asXML();


by (170 points)
thanks, it works :)