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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 26 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC