#40175 [Bgs->Fbk]: Problems in DOM XML hierarchy
| From: | tony2001@php.net | Date: | Fri, 19 Jan 2007 19:52:58 +0000 |
| Subject: | #40175 [Bgs->Fbk]: Problems in DOM XML hierarchy | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107794@lists.php.net to get a copy of this message | ||
ID: 40175
Updated by: tony2001@php.net
Reported By: galvao at galvao dot eti dot br
-Status: Bogus
+Status: Feedback
Bug Type: DOM XML related
Operating System: All
PHP Version: 5.2.0
New Comment:
The XML seems to be broken:
Warning: DOMDocument::load(): Premature end of data in tag SyncQueue
line 3 in /tmp/test.xml, line: 13 in /tmp/5.php on line 4
Erro ao abrir o arquivo XML
Previous Comments:
------------------------------------------------------------------------
[2007-01-19 19:52:25] rrichards@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2007-01-19 19:44:46] galvao at galvao dot eti dot br
Description:
------------
The childNodes function returns a DOMNodeList, but while iterating over
it I find DOMTexts and DOMElements, instead of DOMNodes.
Reproduce code:
---------------
XML: http://pastebin.ca/321816
PHP: http://pastebin.ca/321822
Expected result:
----------------
object(DOMNode)#x (0) {
}
object(DOMNode)#x (0) {
}
Where 'x' is a number.
Actual result:
--------------
object(DOMText)#x (0) {
}
object(DOMElement)#x (0) {
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40175&edit=1