note 45802 added to ref.xml

From: Date: Sun, 19 Sep 2004 20:35:25 +0000
Subject: note 45802 added to ref.xml
Groups: php.notes 
Request: Send a blank email to php-notes+get-76989@lists.php.net to get a copy of this message
The documentation regarding white space was never complete I think. The XML_OPTION_SKIP_WHITE doesn't appear to do anything. I want to preserve the newlines in a cdata section. Setting XML_OPTION_SKIP_WHITE to 0 or false doesn't appear to help. My character_data_handler is getting called once for each line. This obviously should be reflected in the documentation as well. When/how often does the handler get called exactly? Having to build separate test cases is very time consuming. Inserting newlines myself in my cdata handler is no good either. For non actual CDATA sections that cause my handler to get called, long lines are split up in multiple calls. My handler would not be able to tell the difference whether or not the subsequent calls would be due to the fact that the data is coming from the next line or the fact that some internal buffer is long enough for it to 'flush' out and call the handler. This behaviour also needs to be properly documented. ---- Manual Page -- http://www.php.net/manual/en/ref.xml.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45802 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45802&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45802&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76989) next »