php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63410 DOMElement is missing method for fetching all inscope namespaces
Submitted: 2012-11-01 10:59 UTC Modified: -
From: jirka at kosek dot cz Assigned:
Status: Open Package: DOM XML related
PHP Version: 5.4.8 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 - 2 = ?
Subscribe to this entry?

 
 [2012-11-01 10:59 UTC] jirka at kosek dot cz
Description:
------------
If XML documents you are processing are using QNames inside attribute or element values there is need to get list of all XML namespaces declared for a particular element inside DOM.

libxml2 has function for this

http://www.xmlsoft.org/html/libxml-tree.html#xmlGetNsList

Unfortunately this function is not exposed in PHP DOM extensions and there is no other way how to get namespaces inscope for some element.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC