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
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:
14 + 16 = ?
Subscribe to this entry?

 
 [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 22:01:27 2024 UTC