Bug #13639 Updated: CDATA Section Unsupported?
ID: 13639
Updated by: mfischer
Reported By: ben@wizzard.org
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: BSDI BSD/OS 4.0.1
PHP Version: 4.0CVS-2001-10-11
New Comment:
Please paste the output of your script with and without CDATA in the xml source.
Feedback.
Previous Comments:
------------------------------------------------------------------------
[2001-10-11 05:22:05] ben@wizzard.org
Sorry I didn't check this before. If the CDATA section is removed from the sample document, the
test script returns what appears to be a complete tree with this warning;
Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0.
I'm finding some other issues with DOM XML in this build, such as the domxml_root function
(called as a method) returning an object from the "DomElement" class instead of
"DomNode."
I'm don't mean to report two problems at once. I suspect these two issues are both related
to getting a CVS snapshot when the DOM XML code is mid-change.
------------------------------------------------------------------------
[2001-10-11 02:44:59] ben@wizzard.org
Calling mtree on an XML document that contains a CDATA section returns an incomplete tree prefixed
with this warning:
Warning: Unsupported Node type: 4
What follows is a script that tries to make a tree from a well-formed (Brown STG XML validator) XML
document. The code works fine on 4.0.6 release and fails as described above on the cvs snap.
(php4-200110102100)
<PLAINTEXT>
<?php
$xmlstr = join('',file('http://www.dbq365.com/iml/sample_interview.xml'));
$tree = xmltree($xmlstr);
print_r($tree);
?>
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13639&edit=1
Thread (4 messages)