Package xml :: Package etree :: Module ElementTree
[hide private]
[frames] | no frames]

Module ElementTree

Classes [hide private]
_SimpleElementPath
_ElementInterface
_Element
QName
ElementTree
iterparse
TreeBuilder
XMLTreeBuilder
XMLParser
Functions [hide private]
 
Element(tag, attrib={}, **extra)
 
SubElement(parent, tag, attrib={}, **extra)
 
Comment(text=None)
 
ProcessingInstruction(target, text=None)
 
PI(target, text=None)
 
iselement(element)
 
dump(elem)
 
_encode(s, encoding)
 
_raise_serialization_error(text)
 
_encode_entity(text, pattern=re.compile(r'[&<>"\x80-\uffff]+'))
 
_escape_cdata(text, encoding=None, replace=<function replace at 0x404dc224>)
 
_escape_attrib(text, encoding=None, replace=<function replace at 0x404dc224>)
 
fixtag(tag, namespaces)
 
parse(source, parser=None)
 
XML(text)
 
XMLID(text)
 
fromstring(text)
 
tostring(element, encoding=None)
Variables [hide private]
  VERSION = '1.2.6'
  _escape = re.compile(r'[&<>"\x80-\uffff]+')
  _escape_map = {'"': '&quot;', '&': '&amp;', '<': '&lt;', '>': ...
  _namespace_map = {'http://schemas.xmlsoap.org/wsdl/': 'wsdl', ...

Imports: string, sys, re, ElementPath


Variables Details [hide private]

_escape_map

Value:
{'"': '&quot;', '&': '&amp;', '<': '&lt;', '>': '&gt;'}

_namespace_map

Value:
{'http://schemas.xmlsoap.org/wsdl/': 'wsdl',
 'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf',
 'http://www.w3.org/1999/xhtml': 'html',
 'http://www.w3.org/XML/1998/namespace': 'xml'}