php simple xml parse problem on invalid tags

前端 未结 1 480
醉话见心
醉话见心 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:

    
    

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

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