php simple xml parse problem on invalid tags

前端 未结 1 479
醉话见心
醉话见心 2021-01-21 21:39

how can i parse element like this example



 
  &l         


        
相关标签:
1条回答
  • 2021-01-21 21:41

    XML parsers rely on the fact documents have to be strictly valid, and yours is not well-formed. It needs a namespace URI for actor. The root element should be along the lines of this:

    <movies xmlns:actor="http://yoururl.com/">
    

    As long as you don't have it, no compliant XML parser will accept your document.

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