File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Original file line number Diff line number Diff line change @@ -214,7 +214,8 @@ XMLParser Objects
214
214
:meth: `CharacterDataHandler ` callback whenever possible. This can improve
215
215
performance substantially since Expat normally breaks character data into chunks
216
216
at every line ending. This attribute is false by default, and may be changed at
217
- any time.
217
+ any time. Note that when it is false, data that does not contain newlines
218
+ may be chunked too.
218
219
219
220
220
221
.. attribute :: xmlparser.buffer_used
@@ -372,7 +373,10 @@ otherwise stated.
372
373
marked content, and ignorable whitespace. Applications which must distinguish
373
374
these cases can use the :attr: `StartCdataSectionHandler `,
374
375
:attr: `EndCdataSectionHandler `, and :attr: `ElementDeclHandler ` callbacks to
375
- collect the required information.
376
+ collect the required information. Note that the character data may be
377
+ chunked even if it is short and so you may receive more than one call to
378
+ :meth: `CharacterDataHandler `. Set the :attr: `buffer_text ` instance attribute
379
+ to ``True `` to avoid that.
376
380
377
381
378
382
.. method :: xmlparser.UnparsedEntityDeclHandler(entityName, base, systemId, publicId, notationName)
You can’t perform that action at this time.
0 commit comments