#25729 [Opn->Bgs]: $node->get_content() returns the entire content of all descendant nodes
ID: 25729
Updated by: rrichards@php.net
Reported By: fabiostt at libero dot it
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: any
PHP Version: 4.3.3
New Comment:
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
works as it should. "the text carried directly by
this node if it's a TEXT node or the aggregate string of the values
carried by this node child's .."
Previous Comments:
------------------------------------------------------------------------
[2003-10-02 09:52:36] fabiostt at libero dot it
Description:
------------
<?php
$document = domxml_open_file( realpath('./doc.xml') ) ;
$root = $document->first_child() ;
echo($root->get_content()) ;
?>
I returns all content in document
Shouldn't it return just the content, if any, of the context node?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25729&edit=1
Thread (2 messages)