|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #34839 SimpleXMLElement too closed
Submitted: 2005-10-12 19:58 UTC Modified: 2020-02-18 04:08 UTC
Avg. Score:3.5 ± 1.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: stochnagara at hotmail dot com Assigned:
Status: Open Package: SimpleXML related
PHP Version: * 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:
Solve the problem:
24 + 19 = ?
Subscribe to this entry?

 [2005-10-12 19:58 UTC] stochnagara at hotmail dot com
The class SimpleXMLElement is wonderful and provides a great functionality.
But I need to extend it and I don't have a way to determine whether a given SimpleXMLElement is an attribute, an element, a CDATA section and so on.

So I suggest adding methods getName() and getType(). getName() returns element's name for elements, attribute's name for attributes and so on. getType() returns SimpleXMLElement::ELEMENT and so on.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:12 UTC]
-Package: Feature/Change Request +Package: SimpleXML related
 [2020-02-18 04:08 UTC]
-PHP Version: 5.1.0RC1 +PHP Version: *
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 10:01:31 2024 UTC