File: untangle.rst

package info (click to toggle)
python-untangle 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 236 kB
  • sloc: python: 482; makefile: 149; xml: 74; sh: 9
file content (17 lines) | stat: -rw-r--r-- 455 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
untangle
--------
.. image:: https://github.com/stchris/untangle/actions/workflows/build.yml/badge.svg

untangle parses an XML document and returns a Python object which makes it
easy to access the data you want.

Example:

::

    import untangle
    obj = untangle.parse('<root><child name="child1"/></root>')
    assert obj.root.child['name'] == u'child1'

See http://github.com/stchris/untangle and
    http://readthedocs.org/docs/untangle/en/latest/