19.7. xml.etree.ElementTree — The ElementTree XML API — Python 2.7.8 documentation

index modules | next | previous | Python » 2.7.8 Documentation » The Python Standard Library » 19. Structured Markup Processing Tools » xml.etree.ElementTree ¶ New in version 2.5. Source code: Lib/xml/etree/ElementTree.py The Element type is a flexible container object, designed to store hierarchical data structures in memory. The type can be described as a cross between a list and a dictionary. Warning The xml.etree.ElementTree module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see XML vulnerabilities . Each element has a number of properties associated with it: a tag which is a string identifying what kind of data this element represents (the element type, in other words). a number of attributes, stored in a Python dictionary. a text string. an optional tail string. a number of child elemen...

Linked on 2014-09-23 20:09:14 | Similar Links