Actually fix xmltodict usage

This commit is contained in:
Ian Cordasco
2014-05-27 08:28:20 -05:00
parent 1b867b9c5b
commit 49c4f2f1e8
+3 -1
View File
@@ -57,7 +57,9 @@ can be loaded into a Python dict like this:
.. code-block:: python
import xmltodict
obj = xmltodict.parse(open('path/to/file.xml'))
with open('path/to/file.xml') as fd:
obj = xmltodict.parse(fd.read())
and then you can access elements, attributes and values like this: