From 5a2374d093b0bb8f26d3d9bfb8f29b5d28b5da29 Mon Sep 17 00:00:00 2001 From: Romain Catajar Date: Wed, 27 Jan 2016 17:52:53 +0100 Subject: [PATCH] Fix varibable name in XML parsing scenario In the xmltodict example, the xml is loaded in the variable obj but is later referenced as doc. Fixed by renaming obj to doc --- docs/scenarios/xml.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scenarios/xml.rst b/docs/scenarios/xml.rst index 7484413..0cc3cdc 100644 --- a/docs/scenarios/xml.rst +++ b/docs/scenarios/xml.rst @@ -59,7 +59,7 @@ can be loaded into a Python dict like this: import xmltodict with open('path/to/file.xml') as fd: - obj = xmltodict.parse(fd.read()) + doc = xmltodict.parse(fd.read()) and then you can access elements, attributes and values like this: