|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-03 23:13 UTC] sniper@php.net
[2005-06-03 23:20 UTC] jacob at jacobweber dot com
[2005-06-06 17:06 UTC] vrana@php.net
[2005-06-06 23:41 UTC] sniper@php.net
[2005-06-07 16:18 UTC] vrana@php.net
[2005-06-08 02:37 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
Description: ------------ Turning on XML_OPTION_SKIP_WHITE causes the space in the following XML to be skipped: <a>' &</a> I believe this is incorrect. It doesn't skip the space in: <a>& '</a> Jacob Reproduce code: --------------- $xmlStr = "<a>' &</a>"; $xmlParser = xml_parser_create(); xml_parser_set_option($xmlParser, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($xmlParser, $xmlStr, $xmlArr); xml_parser_free($xmlParser); print_r($xmlArr); Expected result: ---------------- Array ( [0] => Array ( [tag] => A [type] => complete [level] => 1 [value] => ' & ) ) Actual result: -------------- Array ( [0] => Array ( [tag] => A [type] => complete [level] => 1 [value] => '& ) ) (note the missing space after the apostrophe