Manually Generating Markup : XML Content « XML « PHP






Manually Generating Markup

 
<?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>";
?>
  
  








Related examples in the same category

1.PRAX - PHP Record-oriented API for XML