<!DOCTYPE html>
<html>
<body>
<?php
$parser=xml_parser_create();
function start($parser,$element_name,$element_attrs) {
switch($element_name) {
case "NOTE":
echo "NOTE<br>";
break;
case "TO":
echo "To: ";
break;
case "FROM":
echo "From: ";
break;
case "HEADING":
echo "Heading: ";
break;
case "BODY":
echo "Message: ";
}
}