Date: 11/10/00
- Next message: Andi Gutmans: "[PHP-DEV] Re: [PHP-QA] $obj = new foo() patch"
- Previous message: André Langhorst: "Re: [PHP-DEV] $obj = new foo() patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6457
Updated by: steinm
Reported By: sb <email protected>
Status: Closed
Bug Type: DOM XML related
Assigned To:
Comments:
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.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-08 03:05:43] sniper <email protected>
reclassify
---------------------------------------------------------------------------
[2000-08-31 04:11:13] sb <email protected>
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6457
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "[PHP-DEV] Re: [PHP-QA] $obj = new foo() patch"
- Previous message: André Langhorst: "Re: [PHP-DEV] $obj = new foo() patch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

