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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Mon Apr 29 15:01:31 2024 UTC