xml.sax.xmlreader.AttributesNS.getValueByQName()

AttributesNS.getValueByQName(name) Return the value for a qualified name.

xml.sax.xmlreader.Attributes.getValue()

Attributes.getValue(name) Return the value of attribute name.

xml.sax.xmlreader.AttributesNS.getQNameByName()

AttributesNS.getQNameByName(name) Return the qualified name for a (namespace, localname) pair.

xml.sax.xmlreader.AttributesNSImpl

class xml.sax.xmlreader.AttributesNSImpl(attrs, qnames) Namespace-aware variant of AttributesImpl, which will be passed to startElementNS(). It is derived from AttributesImpl, but understands attribute names as two-tuples of namespaceURI and localname. In addition, it provides a number of methods expecting qualified names as they appear in the original document. This class implements the AttributesNS interface (see section The AttributesNS Interface).

xml.sax.saxutils.XMLFilterBase

class xml.sax.saxutils.XMLFilterBase(base) This class is designed to sit between an XMLReader and the client application’s event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.

xml.sax.saxutils.unescape()

xml.sax.saxutils.unescape(data, entities={}) Unescape '&', '<', and '>' in a string of data. You can unescape other strings of data by passing a dictionary as the optional entities parameter. The keys and values must all be strings; each key will be replaced with its corresponding value. '&amp', '<', and '>' are always unescaped, even if entities is provided.

xml.sax.saxutils.XMLGenerator

class xml.sax.saxutils.XMLGenerator(out=None, encoding='iso-8859-1', short_empty_elements=False) This class implements the ContentHandler interface by writing SAX events back into an XML document. In other words, using an XMLGenerator as the content handler will reproduce the original document being parsed. out should be a file-like object which will default to sys.stdout. encoding is the encoding of the output stream which defaults to 'iso-8859-1'. short_empty_elements controls the formatti

xml.sax.saxutils.quoteattr()

xml.sax.saxutils.quoteattr(data, entities={}) Similar to escape(), but also prepares data to be used as an attribute value. The return value is a quoted version of data with any additional required replacements. quoteattr() will select a quote character based on the content of data, attempting to avoid encoding any quote characters in the string. If both single- and double-quote characters are already in data, the double-quote characters will be encoded and data will be wrapped in double-quo

xml.sax.xmlreader.Attributes.getLength()

Attributes.getLength() Return the number of attributes.

xml.sax.xmlreader.Attributes.getNames()

Attributes.getNames() Return the names of the attributes.