#34839 [NEW]: SimpleXMLElement too closed
| From: | stochnagara at hotmail dot com | Date: | Wed, 12 Oct 2005 17:58:32 +0000 |
| Subject: | #34839 [NEW]: SimpleXMLElement too closed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86461@lists.php.net to get a copy of this message | ||
From: stochnagara at hotmail dot com
Operating system:
PHP version: 5.1.0RC1
PHP Bug Type: Feature/Change Request
Bug description: SimpleXMLElement too closed
Description:
------------
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.
--
Edit bug report at http://bugs.php.net/?id=34839&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34839&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34839&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34839&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34839&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34839&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34839&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34839&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34839&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34839&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34839&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34839&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34839&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34839&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34839&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34839&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34839&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34839&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34839&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34839&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34839&r=mysqlcfg