More typo, grammar, and style fixes

This commit is contained in:
Andrew Janke
2018-12-17 18:19:53 -05:00
parent 0dfc4c3555
commit a622afa235
25 changed files with 201 additions and 202 deletions
+5 -5
View File
@@ -30,13 +30,13 @@ can be loaded like this:
import untangle
obj = untangle.parse('path/to/file.xml')
and then you can get the child elements name like this:
and then you can get the child element's name attribute like this:
.. code-block:: python
obj.root.child['name']
untangle also supports loading XML from a string or an URL.
untangle also supports loading XML from a string or a URL.
*********
@@ -69,7 +69,7 @@ can be loaded into a Python dict like this:
with open('path/to/file.xml') as fd:
doc = xmltodict.parse(fd.read())
and then you can access elements, attributes and values like this:
and then you can access elements, attributes, and values like this:
.. code-block:: python
@@ -79,5 +79,5 @@ and then you can access elements, attributes and values like this:
doc['mydocument']['plus']['#text'] # == u'element as well'
xmltodict also lets you roundtrip back to XML with the unparse function,
has a streaming mode suitable for handling files that don't fit in memory
and supports namespaces.
has a streaming mode suitable for handling files that don't fit in memory,
and supports XML namespaces.