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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -