aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-untangle/pkg-descr
blob: ce5659b8f5243d83dc3409e654a7975478febab1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
untangle is a tiny Python library which converts an XML document to a Python
object.

Features:
- Siblings with similar names are grouped into a list.
- Children can be accessed with parent.child, attributes with
  element['attribute'].
- You can call the parse() method with a filename, an URL or an XML string.
- Substitutes -, . and : with _ <foobar><foo-bar/></foobar> can be accessed with
  foobar.foo_bar, <foo.bar.baz/> can be accessed with foo_bar_baz and
  <foo:bar><foo:baz/></foo:bar> can be accessed with foo_bar.foo_baz