XML Parsing Error: not well-formed ? anyone can

2019-02-25 23:07发布

问题:

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 &.