mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #673 from rcatajar/patch-1
Fix varibable name in XML parsing scenario
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user