Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7049 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92121 invoked by uid 1010); 13 Jan 2004 14:46:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92081 invoked from network); 13 Jan 2004 14:46:26 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 13 Jan 2004 14:46:26 -0000 Received: (qmail 6784 invoked from network); 13 Jan 2004 14:46:19 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 13 Jan 2004 14:46:19 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20040113154404.06f1c300@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 13 Jan 2004 16:46:18 +0200 To: "Rob Richards" Cc: "Adam Maccabee Trachtenberg" , In-Reply-To: <00fe01c3d9d1$6e8618a0$f7dea8c0@cyberware.local> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] SimpleXML: Moving Forward From: zeev@zend.com (Zeev Suraski) At 14:33 13/01/2004, Rob Richards wrote: >From: Adam Maccabee Trachtenberg > > > 1) SimpleXML creates PHP data structures from XML documents. It only > > handles XML elements, attributes, and text nodes. The syntax for > > accessing the text node children of an element is akin to object > > properties ($foo->bar); the syntax of accessing attributes is akin > > to array elements ($foo['bar']). > >This goes back to my question on what is the goal of SimpleXML? >Is it supposed to be an easy api to be able to access any xml document or >only not complex ones? The way I see it - yes. Clarity and simplicity are much more important in SimpleXML than being able to analyze every last XML document, that's at least my opinion, and this is what caught the attention of people just about anywhere I demo'd it. Please note that SimpleXML takes after BEA's implementation of XML support in ECMAScript. It may not be a bad idea to see what decisions they took in that context. Zeev