|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23313 Missing DomNode->get_namespace()
Submitted: 2003-04-23 06:56 UTC Modified: 2011-01-11 18:58 UTC
From: markus dot pfefferle at web dot de Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: * OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: markus dot pfefferle at web dot de
New email:
PHP Version: OS:


 [2003-04-23 06:56 UTC] markus dot pfefferle at web dot de
It's nice that you can create nodes with namespaces, using DomDocument->create_element_ns() and DomNode->add_namespaces(), but for actually reading them, there is no counterpart method (other than prefix(), which is not very safe).

My specific problem is that I want to clone a node without its child nodes, but can't use DomNode->clone_node(false), since this does not copy any namespace declarations and attributes either.

Adding a DomNode->get_namespace() in future versions would be greatly appreciated.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 20:42 UTC]
-Summary: DOMXML: Missing DomNode->get_namespace() +Summary: Missing DomNode->get_namespace() -Package: Feature/Change Request +Package: DOM XML related -Operating System: Windows 2000 +Operating System: * -PHP Version: 4.3.1 +PHP Version: *
 [2011-01-11 18:58 UTC]
-Status: Open +Status: Wont fix
 [2011-01-11 18:58 UTC]
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 22:01:30 2024 UTC