xml.etree.ElementTree
¶
Functions¶
Comment ([text]) |
|
PI (target[, text]) |
|
ProcessingInstruction (target[, text]) |
|
SubElement (parent, tag[, attrib]) |
|
XML (text[, parser]) |
|
XMLID (text[, parser]) |
|
dump (elem) |
|
fromstring (text[, parser]) |
|
fromstringlist (sequence[, parser]) |
|
iselement (element) |
|
iterparse (source[, events, parser]) |
|
parse (source[, parser]) |
|
register_namespace (prefix, uri) |
|
tostring (element[, encoding, method]) |
|
tostringlist (element[, encoding, method]) |
Classes¶
Element (tag[, attrib]) |
|
ElementTree ([element, file]) |
|
QName (text_or_uri[, tag]) |
|
TreeBuilder ([element_factory]) |
|
XMLParser ([html, target, encoding]) |
|
XMLTreeBuilder |
alias of XMLParser |
Exceptions¶
ParseError |