Skip to content

Commit

Permalink
Added SAX feature toggle docs. #32 #26
Browse files Browse the repository at this point in the history
  • Loading branch information
stchris committed Mar 9, 2017
1 parent 585583f commit b3023f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ In most cases it should be enough to import the sys module, and set utf-8 as enc
reload(sys) # just to be sure
sys.setdefaultencoding('utf-8')

SAX features
------------

It is possible to pass specific SAX features to the handler used by untangle, for instance: ::

untangle.parse(my_xml, feature_external_ges=False)

This will toggle the SAX handler feature described `here <https://docs.python.org/2/library/xml.sax.handler.html#xml.sax.handler.feature_external_ges>`

Changelog
---------

Expand All @@ -101,4 +110,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit b3023f6

Please sign in to comment.