<?php header ( "Content-Type: text/xml" ); echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n"; echo "<inventory>\n"; echo "<product id=\"0\">\n" . "<name>name</name>\n" ."</product>\n"; echo "</inventory>"; ?>