]> granicus.if.org Git - python/commitdiff
Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing.
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 5 Jan 2011 18:37:22 +0000 (18:37 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 5 Jan 2011 18:37:22 +0000 (18:37 +0000)
Doc/library/pyexpat.rst

index 390c38e49059bd66ab3f92d540a07192c5d269c5..a648cfa529039b2859b535e5101163df8278a63c 100644 (file)
@@ -153,6 +153,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])