The nova.openstack.common.xmlutils Module

class ProtectedExpatParser(forbid_dtd=True, forbid_entities=True, *args, **kwargs)

Bases: xml.sax.expatreader.ExpatParser

An expat parser which disables DTD’s and entities by default.

entity_decl(entityName, is_parameter_entity, value, base, systemId, publicId, notationName)
external_entity_ref(context, base, systemId, publicId)
notation_decl(name, base, sysid, pubid)
reset()
start_doctype_decl(name, sysid, pubid, has_internal_subset)
unparsed_entity_decl(name, base, sysid, pubid, notation_name)
safe_minidom_parse_string(xml_string)

Parse an XML string using minidom safely.

Previous topic

The nova.openstack.common.version Module

Next topic

The nova.paths Module

This Page