How to skip invalid characters in XML file using PHP

后端 未结 7 1767
再見小時候
再見小時候 2020-12-01 05:51

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\'

7条回答
  •  庸人自扰
    2020-12-01 06:03

    Make sure your XML source is valid. See http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

提交回复
热议问题