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 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?
Do you have control over the XML? If so, ensure the data is enclosed in
And you also need to clear the invalid characters: