File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
an XML document and returns a Python object which mirrors the nodes and
9
9
attributes in its structure.
10
10
11
- For example, an xml file like this:
11
+ For example, an XML file like this:
12
12
13
13
.. code-block :: xml
14
14
@@ -36,9 +36,9 @@ xmltodict
36
36
---------
37
37
38
38
`xmltodict <http://github.com/martinblech/xmltodict >`_ is another simple
39
- library that aims at making xml feel like working with json .
39
+ library that aims at making XML feel like working with JSON .
40
40
41
- An xml file like this:
41
+ An XML file like this:
42
42
43
43
.. code-block :: xml
44
44
@@ -52,7 +52,7 @@ An xml file like this:
52
52
</plus >
53
53
</mydocument >
54
54
55
- can be loaded into a python dict like this:
55
+ can be loaded into a Python dict like this:
56
56
57
57
.. code-block :: python
58
58
@@ -68,6 +68,6 @@ and then you can access elements, attributes and values like this:
68
68
doc[' mydocument' ][' plus' ][' @a' ] # == u'complex'
69
69
doc[' mydocument' ][' plus' ][' #text' ] # == u'element as well'
70
70
71
- xmltodict also lets you roundtrip back to xml with the unparse function,
71
+ xmltodict also lets you roundtrip back to XML with the unparse function,
72
72
has a streaming mode suitable for handling files that don't fit in memory
73
73
and supports namespaces.
You can’t perform that action at this time.
0 commit comments