Attributes = "; print_r($attrs); } function stopElement($parser, $name) { echo "End [$name] \n"; } function characterData($parser, $data) { echo "Data: $data \n"; } if(!xml_parse($parser, str_replace(array("\n", "\r", "\t"), '', $xml))) echo xml_error_string(xml_get_error_code($parser)); xml_parser_free($parser); ?>