diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index 30a98fcc4ac..1eb9db11225 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -154,6 +154,13 @@ XMLParser Objects :attr:`ordered_attributes` 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])