|  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
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: stochnagara at hotmail dot com
New email:
PHP Version: OS:


 [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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 13:01:26 2023 UTC