summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/library/pyexpat.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
index 43335883b8..82997398d3 100644
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -157,6 +157,13 @@ XMLParser Objects
:attr:`ordered_attributes`, :attr:`returns_unicode` and
:attr:`specified_attributes` set to the values of this parser.
+.. method:: xmlparser.SetParamEntityParsing(flag)
+
+ Control parsing of parameter entities (including the external DTD subset).
+ Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`,
+ :const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and
+ :const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag
+ was successful.
.. method:: xmlparser.UseForeignDTD([flag])