|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-31 16:17 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
Description: ------------ when < is followed by a character (not a space or digit) I loose the characters till the next < Reproduce code: --------------- <?PHP $xmlstr = <<<EOD <?xml version="1.0"?> <root> <message> <description>test for greater then 5 >5 and less then a < a here</description> <callnummer>20050002</callnummer> </message> <message> <description>test for greater then 5 >5 and less then a <a here</description> <callnummer>20050002</callnummer> </message> </root> EOD; $xml = simplexml_load_string($xmlstr); foreach ($xml->message as $k) { foreach ($k->children() as $a=>$b) { echo "$a = $b<br>"; } } ?> Expected result: ---------------- description = test for greater then 5 >5 and less then a < a here callnummer = 20050002 description = test for greater then 5 >5 and less then a <a here callnummer = 20050002 Actual result: -------------- description = test for greater then 5 >5 and less then a < a here callnummer = 20050002 description = test for greater then 5 >5 and less then a callnummer = 20050002