Hi,
I am doing a XML file with chinese and korean characters.
It was fine when it was in English but when inserting the chinese characters, it has errors;
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: Entity: line 98: parser error : Premature end of data in tag description2 line 98 in C:\Program Files\xampp\htdocs\plaincart\parselangxml.php on line 4
Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]: t and in the mean time, pursuing and promoting interest of local food to even mo in C:\Program Files\xampp\htdocs\plaincart\parselangxml.php on line 4
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\Program Files\xampp\htdocs\plaincart\parselangxml.php:4 Stack trace: #0 C:\Program Files\xampp\htdocs\plaincart\parselangxml.php(4): SimpleXMLElement->__construct('language[$i]->type != $lang_choice) {
$i++;
} // end foreach
$lang = $xmlData->language[$i];
?>
Could anyone help me?
LatecomerX
Once again, change the encoding of the XML file to UTF-8.