Re: SimpleXML: Moving Forward

From: Date: Tue, 13 Jan 2004 14:46:18 +0000
Subject: Re: SimpleXML: Moving Forward
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7049@lists.php.net to get a copy of this message
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

« previous php.internals (#7049) next »