Package xmlschema_acue :: Module etree :: Class SafeXMLParser

Class SafeXMLParser

source code


An XMLParser that forbids entities processing. Drops the *html* argument that is deprecated since version 3.4.

:param target: the target object called by the `feed()` method of the parser, that defaults to `TreeBuilder`. :param encoding: if provided, its value overrides the encoding specified in the XML file.

Instance Methods
 
__init__(self, target=None, encoding=None) source code
 
entity_declaration(self, entity_name, is_parameter_entity, value, base, system_id, public_id, notation_name) source code
 
unparsed_entity_declaration(self, entity_name, base, system_id, public_id, notation_name) source code
 
external_entity_reference(self, context, base, system_id, public_id) source code