The following piece of code works fine on godaddy's linux server but does not work with latest version of xampp on windows xp sp3.
To make it wok with xampp on win xp sp3, i have to remove <?xml version="2.0" encoding="iso-8859-1"?> from $xmlcontent.
What is the likely reason for it? Thank You.
$xmlcontent ='<?xml version="2.0" encoding="iso-8859-1"?><list><fname>John</fname><lname>Doe</lname></list>';
$xml_parser = xml_parser_create();
xml_parse_into_struct($xml_parser, $xmlcontent, $arr_vals);
xml_parser_free($xml_parser);
print_r($arr_vals);