Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20696 invoked by uid 1010); 31 Oct 2005 09:19:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 20681 invoked from network); 31 Oct 2005 09:19:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2005 09:19:55 -0000 X-Host-Fingerprint: 212.55.202.210 host-210.bitflux.ch Linux 2.5 (sometimes 2.4) (4) Received: from ([212.55.202.210:3831] helo=devel.bitflux.ch) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 43/63-02082-AB1E5634 for ; Mon, 31 Oct 2005 04:19:54 -0500 Received: from localhost (localhost [127.0.0.1]) by devel.bitflux.ch (Postfix) with ESMTP id 0DB57E73C6; Mon, 31 Oct 2005 10:19:50 +0100 (CET) Received: from devel.bitflux.ch ([127.0.0.1]) by localhost (devel.bitflux.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19256-02; Mon, 31 Oct 2005 10:19:38 +0100 (CET) Received: from [192.168.84.92] (host-195.bitflux.ch [212.55.202.195]) by devel.bitflux.ch (Postfix) with ESMTP id 3F39CE73C8; Mon, 31 Oct 2005 10:19:38 +0100 (CET) Message-ID: <4365E1AA.4020602@bitflux.ch> Date: Mon, 31 Oct 2005 10:19:38 +0100 Organization: Bitflux GmbH User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marian Kostadinov Cc: internals@lists.php.net References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at bitflux.ch Subject: Re: [PHP-DEV] Is really no one interested? From: christian.stocker@bitflux.ch (Christian Stocker) On 31.10.2005 10:16 Uhr, Marian Kostadinov wrote: > This is related to feature request 34839. > > [12 Oct 7:58pm CEST] stochnagara at hotmail dot com > > 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. SimpleXML is meant to be simple and the desicion was made to keep its API short. Use DOM if you want those more advanced features (there's dom_import_simplexml() and simplexml_import_dom() for easy and fast switching between those 2) chregu > > > > > Maybe it is late for 5.1.0 but 5.1.1 is a good place for this to appear. > -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | christian.stocker@bitflux.ch | GPG 0x5CE1DECB