XML Parsing Error: not well-formed ? anyone can

时间秒杀一切 提交于 2019-12-20 03:10:36

问题


This is my first time creating a xml document but I am having problems with one line not working. can anyone tell me what I have done wrong.

http://www.ncerttext.in/flipkart.xml error is

7: 107 The entity "wgtid" was referenced, but not declared.

how should i do that.


回答1:


As suggested by @Marco Forberg, the problematic character in your XML is "&". Simply change & to &.

By the way: Modern browsers tell you something about XML files even if they are malformed. For example, if you open your file with a recent version of Firefox, hit Ctrl+U and hover over the red character, it informs you that & is not allowed and should most probably be changed to &.



来源:https://stackoverflow.com/questions/20047789/xml-parsing-error-not-well-formed-anyone-can

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!