Error on line 2 at column 1: Extra content at the end of the document

前端 未结 4 1665
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 11:03

When I use the below code and parse the xml locally it works fine but when upload the same script at the server it shows error.

Note: I retrieved the $lng

4条回答
  •  伪装坚强ぢ
    2020-12-10 11:14

    I think you are creating a document that looks like this:

    
        ....
    
    
        ....
    
    

    This is not a valid XML document as it has more than one root element. You must have a single top-level element, as in

          
      
          ....
      
      
          ....
      
      ....
    
    

提交回复
热议问题