php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sb at phpopentracker dot de
New email:
PHP Version: OS:

 

 [2000-08-31 04:11 UTC] sb at phpopentracker dot 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.

Patches

Pull Requests

History

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