Skip to content

Commit 5a2374d

Browse files
committed
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
1 parent 13bf0ae commit 5a2374d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/scenarios/xml.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ can be loaded into a Python dict like this:
5959
import xmltodict
6060
6161
with open('path/to/file.xml') as fd:
62-
obj = xmltodict.parse(fd.read())
62+
doc = xmltodict.parse(fd.read())
6363
6464
and then you can access elements, attributes and values like this:
6565

0 commit comments

Comments
 (0)