Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6585 invoked by uid 1010); 1 Nov 2005 07:48:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6570 invoked from network); 1 Nov 2005 07:48:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Nov 2005 07:48:16 -0000 X-Host-Fingerprint: 66.249.82.193 xproxy.gmail.com Linux 2.4/2.6 Received: from ([66.249.82.193:55169] helo=xproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E1/F9-02082-0CD17634 for ; Tue, 01 Nov 2005 02:48:16 -0500 Received: by xproxy.gmail.com with SMTP id t12so1338123wxc for ; Mon, 31 Oct 2005 23:48:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nI7T70PHrtgyWK+n+qqe9RpN8EEaiKjO3lPHgWoyVUv/Q/vcti1J680FmjOiysgp9cNfp3N1eZlocY59e1y5Ci6ffleB/v8x1dY5oDcOEysP1PVZ/qUua1cFfvSsLNP36d1rncdBJeZtqNpYiOBkocAtuMzo211qc81ZN2yRHU8= Received: by 10.70.14.9 with SMTP id 9mr2275877wxn; Mon, 31 Oct 2005 23:48:13 -0800 (PST) Received: by 10.70.44.11 with HTTP; Mon, 31 Oct 2005 23:48:13 -0800 (PST) Message-ID: Date: Tue, 1 Nov 2005 09:48:13 +0200 To: internals@lists.php.net In-Reply-To: <200511010921.04064.bu@orbitel.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4365E1AA.4020602@bitflux.ch> <200511010921.04064.bu@orbitel.bg> Subject: Re: [PHP-DEV] Is really no one interested? From: manchokapitancho@gmail.com (Marian Kostadinov) Who says that I have a well-formed DTD? DTD is not necessary in many cases. I will illustrate with example why DOM is too "complex" ... compared to SimpleXML. hi1'; $xml2 =3D 'hi2'; $sxe1 =3D new SimpleXMLElement ($xml1); $sxe2 =3D new SimpleXMLElement ($xml2); //Easy access to a node. It's great! echo $sxe1->a->b->c->d; echo $sxe2->a->b->c->d; //But how can I understand what is the name of the root node? $dom_sxe =3D dom_import_simplexml($sxe1); //Hooray, we've got node name echo $dom_sxe->nodeName; //And what happens if element sequence changes? . echo $dom_sxe->childNodes->item(1)->firstChild->firstChild->firstChild->nod= eValue; //... hm... I prefer SimpleXML.