Skip to content

Commit 1b867b9

Browse files
committed
Update xml.rst
1 parent d775f01 commit 1b867b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/scenarios/xml.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ can be loaded into a Python dict like this:
5757
.. code-block:: python
5858
5959
import xmltodict
60-
obj = xmltodict.parse('path/to/file.xml')
60+
obj = xmltodict.parse(open('path/to/file.xml'))
6161
6262
and then you can access elements, attributes and values like this:
6363

0 commit comments

Comments
 (0)