$fp = fopen('keyword-data.xml', 'r') or die ("Cannot open keyword-data.xml!");
while ($data = fread($fp, 4096)) { xml_parse($parser, $data, feof($fp)) or die(sprintf('XML ERROR: %s at line %d', xml_error_string(xml_get_error_code($parser)), xml_get_current_line_number($parser))); }