XML Validation error : EntityRef: expecting';'

前端 未结 4 1097
梦毁少年i
梦毁少年i 2021-01-31 08:03

  http://www.ezed.in/ezed/courseDemoIntroPage.do?courseId=COU10000000138003530&checkingCourseFrom=preLogin#.U2DcKvmSySo
         


        
4条回答
  •  半阙折子戏
    2021-01-31 08:56

    Your URL must be escaped.

    & character is used in XML to insert a character reference with syntax &name; (note ; after name). Parser expects a ; but it can't find it (there are more available delimiters, this is just most common case).

    Solution is then escaping (how it's done depends on language you use to generate that XML file) but final result must be something like this:

    
      http://www.ezed.in/ezed/courseDemoIntroPage.do?courseId=COU10000000138003530&checkingCourseFrom=preLogin#.U2DcKvmSySo
    
    

    Note that plain & has been replaced with its escaped version &. For further details see this simple article.

    Another possible solution (if you don't want/you can't escape) is to enclose URL inside a CDATA section like this:

    
      
    
    

提交回复
热议问题