#6457 [Com]: DOM XML functions are misbehaving
| From: | goodfx at bellatlamtic dot net | Date: | Fri, 01 Nov 2002 06:25:13 +0000 |
| Subject: | #6457 [Com]: DOM XML functions are misbehaving | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23875@lists.php.net to get a copy of this message | ||
ID: 6457
Comment by: goodfx@bellatlamtic.net
Reported By: sb@phpopentracker.de
Status: Closed
Bug Type: DOM XML related
Operating System: Windows 2000
PHP Version: 4.0.2
New Comment:
can't order from sight
Previous Comments:
------------------------------------------------------------------------
[2000-11-10 06:43:02] steinm@php.net
This is fundamental problem of the extension.
Reading properties is ok, but writing to them will
not be synced with the internal tree of libxml.
The latest CVS contains a function set_content()
which does what you expect.
------------------------------------------------------------------------
[2000-11-08 03:05:43] sniper@php.net
reclassify
------------------------------------------------------------------------
[2000-08-31 04:11:13] sb@phpopentracker.de
The output of the following script
<?php
// create new xml document
$document = new_xmldoc( "1.0" );
// add "root" element
$root = $document->add_root( "root" );
// set contents for "root" element
$root->content = "contents of root";
// output xml document
print htmlspecialchars( $document->dumpmem() );
?>
is
<?xml version="1.0"?> <root/>
and not
<?xml version="1.0"?> <root> contents of root <root/>
as I'd expected it to be.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=6457&edit=1