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 88an XML document and returns a Python object which mirrors the nodes and
99attributes in its structure.
1010
11- For example, an xml file like this:
11+ For example, an XML file like this:
1212
1313.. code-block :: xml
1414
@@ -36,9 +36,9 @@ xmltodict
3636---------
3737
3838`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 .
4040
41- An xml file like this:
41+ An XML file like this:
4242
4343.. code-block :: xml
4444
@@ -52,7 +52,7 @@ An xml file like this:
5252 </plus >
5353 </mydocument >
5454
55- can be loaded into a python dict like this:
55+ can be loaded into a Python dict like this:
5656
5757.. code-block :: python
5858
@@ -68,6 +68,6 @@ and then you can access elements, attributes and values like this:
6868 doc[' mydocument' ][' plus' ][' @a' ] # == u'complex'
6969 doc[' mydocument' ][' plus' ][' #text' ] # == u'element as well'
7070
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,
7272has a streaming mode suitable for handling files that don't fit in memory
7373and supports namespaces.
You can’t perform that action at this time.
0 commit comments