Changeset 391 for python/trunk/Doc/library/pyexpat.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/pyexpat.rst
r2 r391 14 14 directive. Since they are attributes which are set by client code, in-text 15 15 references to these attributes should be marked using the :member: role. 16 17 18 .. warning:: 19 20 The :mod:`pyexpat` module is not secure against maliciously 21 constructed data. If you need to parse untrusted or unauthenticated data see 22 :ref:`xml-vulnerabilities`. 23 16 24 17 25 .. versionadded:: 2.0 … … 158 166 :attr:`specified_attributes` set to the values of this parser. 159 167 168 .. method:: xmlparser.SetParamEntityParsing(flag) 169 170 Control parsing of parameter entities (including the external DTD subset). 171 Possible *flag* values are :const:`XML_PARAM_ENTITY_PARSING_NEVER`, 172 :const:`XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE` and 173 :const:`XML_PARAM_ENTITY_PARSING_ALWAYS`. Return true if setting the flag 174 was successful. 160 175 161 176 .. method:: xmlparser.UseForeignDTD([flag]) … … 431 446 432 447 Called for comments. *data* is the text of the comment, excluding the leading 433 '``<!-``\ ``-``' and trailing '``-``\ ``->``'.448 ``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``. 434 449 435 450 … … 465 480 This happens when there is an external subset or a reference to a parameter 466 481 entity, but the XML declaration does not set standalone to ``yes`` in an XML 467 declaration. If this handler returns ``0``, then the parser will throwan482 declaration. If this handler returns ``0``, then the parser will raise an 468 483 :const:`XML_ERROR_NOT_STANDALONE` error. If this handler is not set, no 469 484 exception is raised by the parser for this condition. … … 482 497 ``ExternalEntityParserCreate(context)``, initializing it with the appropriate 483 498 callbacks, and parsing the entity. This handler should return an integer; if it 484 returns ``0``, the parser will throwan499 returns ``0``, the parser will raise an 485 500 :const:`XML_ERROR_EXTERNAL_ENTITY_HANDLING` error, otherwise parsing will 486 501 continue.
Note:
See TracChangeset
for help on using the changeset viewer.