From 1f61583f10c421720ce14195b5f433fbcd069f3f Mon Sep 17 00:00:00 2001 From: smithandrewl Date: Sat, 18 Jan 2014 21:47:45 -0600 Subject: [PATCH] Capitalization in xml.rst replaced: * xml to XML * python to Python * json to JSON --- docs/scenarios/xml.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/scenarios/xml.rst b/docs/scenarios/xml.rst index 1f8db9c..ee97e2d 100644 --- a/docs/scenarios/xml.rst +++ b/docs/scenarios/xml.rst @@ -8,7 +8,7 @@ untangle an XML document and returns a Python object which mirrors the nodes and attributes in its structure. -For example, an xml file like this: +For example, an XML file like this: .. code-block:: xml @@ -36,9 +36,9 @@ xmltodict --------- `xmltodict `_ is another simple -library that aims at making xml feel like working with json. +library that aims at making XML feel like working with JSON. -An xml file like this: +An XML file like this: .. code-block:: xml @@ -52,7 +52,7 @@ An xml file like this: -can be loaded into a python dict like this: +can be loaded into a Python dict like this: .. code-block:: python @@ -68,6 +68,6 @@ and then you can access elements, attributes and values like this: doc['mydocument']['plus']['@a'] # == u'complex' doc['mydocument']['plus']['#text'] # == u'element as well' -xmltodict also lets you roundtrip back to xml with the unparse function, +xmltodict also lets you roundtrip back to XML with the unparse function, has a streaming mode suitable for handling files that don't fit in memory and supports namespaces.