Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a83878e

Browse files
committed
Issue #5485: Add doc for expat.xmlparser.SetParamEntityParsing.
1 parent 183fe81 commit a83878e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/library/pyexpat.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ XMLParser Objects
153153
:attr:`ordered_attributes` and :attr:`specified_attributes` set to the values of
154154
this parser.
155155

156+
.. method:: xmlparser.SetParamEntityParsing(flag)
157+
158+
Control parsing of parameter entities (including the external DTD subset).
159+
Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`,
160+
:const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and
161+
:const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag
162+
was successful.
156163

157164
.. method:: xmlparser.UseForeignDTD([flag])
158165

0 commit comments

Comments
 (0)