I'm trying to parse an XML file using PHP, but I get an error message:
parser error : Char 0x0 out of allowed range in
I think it's because of the content of the XML, I think there is a speical symbol "☆", any ideas what I can do to fix it?
I also get:
parser error : Premature end of data in tag item line
What might be causing that error?
I'm using simplexml_load_file
.
Update:
I try to find the error line and paste its content as single xml file and it can work!! so I still cannot figure out what makes xml file parse fails. PS it's a huge xml file over 100M, will it makes parse error?