Safely loading XML files in Python
XML is a tricky format full of unexpected behavior. The only safe way to load untrusted XML files in Python is to do it via defusedxml.
This is what I use in Atoma to safely load RSS and Atom feeds.
XML is a tricky format full of unexpected behavior. The only safe way to load untrusted XML files in Python is to do it via defusedxml.
This is what I use in Atoma to safely load RSS and Atom feeds.