note 84815 added to function.xml-parser-set-option
| From: | www dot thomaskoch dot it at osu1 dot php dot net | Date: | Thu, 31 Jul 2008 09:22:49 +0000 |
| Subject: | note 84815 added to function.xml-parser-set-option | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142968@lists.php.net to get a copy of this message | ||
The option XML_OPTION_SKIP_WHITE has no effect in my PHP 5.2.6 (with expat-1.95.8-5). To skip cdata
composed of white space only, simply check for that at the beginning of your cdata callback
function:
<?php
function callback_cdata($parser, $cdata)
{
if(!trim($cdata))
return;
// ... continue processing ...
}
?>
----
Server IP: 212.124.37.9
Probable Submitter: 84.160.157.80
----
Manual Page -- http://www.php.net/manual/en/function.xml-parser-set-option.php
Edit -- https://master.php.net/note/edit/84815
Del: integrated -- https://master.php.net/note/delete/84815/integrated
Del: useless -- https://master.php.net/note/delete/84815/useless
Del: bad code -- https://master.php.net/note/delete/84815/bad+code
Del: spam -- https://master.php.net/note/delete/84815/spam
Del: non-english -- https://master.php.net/note/delete/84815/non-english
Del: in docs -- https://master.php.net/note/delete/84815/in+docs
Del: other reasons-- https://master.php.net/note/delete/84815
Reject -- https://master.php.net/note/reject/84815
Search -- https://master.php.net/manage/user-notes.php