xml output question
Posted: Mon Jul 07, 2003 3:20 am
whats wrong with my code? it displays everything in one line instead of the xml format.?? someone help? if this is to do with DOCTYPE then could someone tell me what that is exactly as well. thanks!!!!
echo "<?xml version='1.0'>";
echo "<dataSet>";
echo "<data>";
echo "<rownum>test</rownum>";
echo "<kid>blaa</kid>";
echo "<mname>bleee</mname>";
echo "<gtype>bloo</gtype>";
echo "</data>";
echo "</dataSet>";
echo "<?xml version='1.0'>";
echo "<dataSet>";
echo "<data>";
echo "<rownum>test</rownum>";
echo "<kid>blaa</kid>";
echo "<mname>bleee</mname>";
echo "<gtype>bloo</gtype>";
echo "</data>";
echo "</dataSet>";