Greetings.

I have an XML document which was produced by software Jekyll.

The problem is at column 698 of row 34.

There is character "&" instead of characters "&".

However, unless I am doing something incorrectly, LXML removes sign
ampersand instead of realizing it in a valid form of XML.

 import lxml.etree as ET
 corrector = ET.XMLParser(recover=True)
 ET.parse(BytesIO(content.encode()), corrector)

https://git.xmpp-it.net/sch/Slixfeed/src/branch/master/src/slixfeed/utility/parse.py

Please advise.

Kind regards,
Schimon

Attachment: k9.atom
Description: application/atom

_______________________________________________
lxml - The Python XML Toolkit mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/lxml.python.org
Member address: [email protected]

Reply via email to