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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC