mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Update xml.rst
This commit is contained in:
@@ -57,7 +57,7 @@ can be loaded into a Python dict like this:
|
||||
.. code-block:: python
|
||||
|
||||
import xmltodict
|
||||
obj = xmltodict.parse('path/to/file.xml')
|
||||
obj = xmltodict.parse(open('path/to/file.xml'))
|
||||
|
||||
and then you can access elements, attributes and values like this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user