note 52233 added to function.xml-set-character-data-handler
| From: | yaroukh at email dot cz | Date: | Mon, 25 Apr 2005 15:51:35 +0000 |
| Subject: | note 52233 added to function.xml-set-character-data-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88527@lists.php.net to get a copy of this message | ||
It would be nice if someone could complete documentation of this function. I think that the
"splitting" behaviour should (at least) be mentioned within the documentation, if not
explained (please!). I'm not quite sure whether the cut comes after each 1024bytes/chars of
data.
My experience looks as follows:
[xmlFile]
...
<label>slo|ka</label>
<comment>koment|ář sloky</comment>
...
[/xmlFile]
(Places where the character-data got splitted are marked with pipes. Plus there was latin small
letter 'r' with caron instead of ř.)
Since the splitting is not mentioned in documentation one could assume that it is a bug; especially
when you work with UTF-8 and the cuts come right before some special characters.
(Should the concatenating of $cData be considered to be the proper & 'final' way of
processing character-data?)
Also I'd suggest to add another line in "Description" when fc has an alternate usage
(instead of hiding it within the "Note" :o); in this particular case I'd prefer this:
Description:
bool xml_set_character_data_handler ( resource parser, callback handler )
bool xml_set_character_data_handler ( resource parser, object reference, method name )
... there are dozens of functions ofcourse where documentation works this way (I mean not mentioning
the alternate usage in the "Description" part).
Have a nice day
Yaroukh
----
Manual Page -- http://www.php.net/manual/en/function.xml-set-character-data-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52233
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52233&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52233&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52233&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52233&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52233&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52233&report=yes
Search -- http://master.php.net/manage/user-notes.php