"."[[:space:]]+"."< ",">< ",$data); if (!xml_parse($xmlparser, $data, feof($fp))) { $reason = xml_error_string(xml_get_error_code($xmlparser)); $reason .= xml_get_current_line_number($xmlparser); die($reason); } } xml_parser_free($xmlparser); $current = ""; function start_tag($parser, $name, $attribs) { echo "Current tag : ".$name."
"; if (is_array($attribs)) { if(sizeof($attribs) > 0) { echo "Attributes :
"; while(list($key,$val) = each($attribs)) { $config[$name][$key] = $val; echo "Attribute ".$key." has value ".$val."
"; } } } } function end_tag($parser, $name) { echo "Reached ending tag ".$name."

"; } function tag_contents($parser, $data) { if(strlen($data) > 1) { echo "Contents : ".$data."
"; } } ?>
Taken At:
Current Temp:
Desription:
Code: