|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6457 DOM XML functions are misbehaving
Submitted: 2000-08-31 04:11 UTC Modified: 2000-11-10 06:43 UTC
From: sb at phpopentracker dot de Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0.2 OS: Windows 2000
Private report: No CVE-ID: None
 [2000-08-31 04:11 UTC] sb at phpopentracker dot de
  The output of the following script

      // 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() );


    <?xml version="1.0"?> <root/>

  and not

    <?xml version="1.0"?> <root> contents of root <root/> 

  as I'd expected it to be.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-08 03:05 UTC]
 [2000-11-10 06:43 UTC]
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.
 [2002-11-01 00:25 UTC] goodfx at bellatlamtic dot net
can't order from sight
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun May 28 12:03:40 2023 UTC