Manually Generating Markup : XML Content « XML « PHP
- PHP
- XML
- XML Content
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