php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16204 append_child related
Submitted: 2002-03-21 11:12 UTC Modified: 2002-04-15 11:25 UTC
From: klebermass at ffb dot org Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.1.2 OS: Linux
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: klebermass at ffb dot org
New email:
PHP Version: OS:

 

 [2002-03-21 11:12 UTC] klebermass at ffb dot org
i use  the append_child() , well it does append the xml part into the  main xml-object so it should work correkt.
But i dont know if its a bug or it but it adds the XML-code one level higer than i wanted it.
let me explain better:
u have  
root -|
      |
      |-sub1
      | 



and i have a second tree beginning with  
sub3 -|...


so i wanted to add sub3 behind sub1 so i should look like

root -|
      |
      |-sub1-|
      |      |-sub3
      

so i used sub1->append_child(sub3);

and i didnt get this but the following:

root -|
      |
      |-sub1
      |      
      |-sub3


is this correkt and if it is, how can i solf my problem? (am i using the wrong function perhaps)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-15 11:25 UTC] steinm@php.net
This bug has been fixed in CVS.

The current CVS version of php includes a fixed
version of append_child() which actually does what
its name implies. The current behaviour will be covered
by append_sibling.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 14:01:27 2025 UTC