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
This commit is contained in:
Romain Catajar
2016-01-27 17:52:53 +01:00
parent 13bf0aefa0
commit 5a2374d093
+1 -1
View File
@@ -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: