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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Apr 05 01:01:24 2020 UTC