XML parsing in python: expaterror not well-formed -


I use Python xml.etree.ElementTree to parsing some XML on a file I am doing However, I get this error through the document:

  xml.parsers.expat.ExpatError: not well (invalid token): line X, column Y   

So I go to line X, column Y, and I see an ampersand (& amp;) with highlighting on red background. what does this mean?

Its preceding two letters are & gt; & Gt; , so that the & gt; & Gt; & Amp; Is something special about ?

How does anyone decide on this?

The & amp; There is a special character in XML, which is used for character organizations. If your XML contains & amp; & amp; Amp; Amp; or & amp; # 1104; or not as part of an entity like the choice, the XML is invalid.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -