How to skip invalid characters in XML file using PHP

后端 未结 7 1758
再見小時候
再見小時候 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:25

    For a non-destructive method of loading this type of input into a SimpleXMLElement, see my answer on How to handle invalid unicode with simplexml

    0 讨论(0)
提交回复
热议问题