php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34878 domxml cannot create a element use name of element 'channel'
Submitted: 2005-10-15 02:15 UTC Modified: 2005-10-16 12:44 UTC
From: js1 at qq dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.5 OS: windows2003+IIS6
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: js1 at qq dot com
New email:
PHP Version: OS:

 

 [2005-10-15 02:15 UTC] js1 at qq dot com
Description:
------------
domxml cannot create a element  use name of element   'channel'

Reproduce code:
---------------
<?php
  $dom = domxml_new_doc("1.0");
  $root = $dom->add_root("channel") ;
  echo $dom->dump_mem(true,"utf-8"); 
?> 

Expected result:
----------------
alert 'add to Favorites'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-15 11:52 UTC] tony2001@php.net
And the actual result is ..?
 [2005-10-16 03:07 UTC] js1 at qq dot com
Expected result:
----------------
creart xml rss2.0



actual result 
----------------
alert 'add to Favorites'
 [2005-10-16 12:44 UTC] chregu@php.net
your code produces perfectly valid and expected xml on my 
installation (php4/domxml)

But remember that using domxml with php5 is really discouraged 
and not supported at all. Please use dom and upgrade your 
scripts accordingly.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Dec 06 23:00:01 2025 UTC