Parser to use for XML parsing.
Can be either 'defusedxml' or 'xml'.
'defusedxml' is the default parser and is used to prevent XML vulnerabilities
present in some distributions of Python's standard library xml. defusedxml is
a wrapper around the standard library parser that sets up the parser with secure
defaults.'xml' is the standard library parser.Use xml only if you are sure that your distribution of the standard library is
not vulnerable to XML vulnerabilities.
Review the following resources for more information:
The standard library relies on libexpat
for parsing XML.
parser: Literal['defusedxml', 'xml'] = 'defusedxml'