Re: SimpleXML and Default Cast To String
| From: | Andi Gutmans | Date: | Tue, 13 Jan 2004 06:48:25 +0000 |
| Subject: | Re: SimpleXML and Default Cast To String | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7042@lists.php.net to get a copy of this message | ||
At 07:39 AM 1/13/2004 +0100, Marcus Boerger wrote:
It's not supposed to be DOM but I think there's a lot of added value in making it easy/simple to do some of the basic methods. I agree it shouldn't be bloated with all of DOM's capabilities. I guess nobody wants a whole bunch of methods in SXE.Up to now Sterling is the only nobody not that the current four responses or so are a real accurate survey :)
Yep. Andi+1 and I prefer get*() :) +1 too and they only make sense if they are named get*() because that are the names of the interface methods they implement.I can accept getChildren() and getAttributes() (or better, just children() and attributes()) as methods on objects, but I'm not happy with them at all. These two methods were considered for inclusion in my original thoughts on simplexml, and I decided against them for the reasons I've mentioned above. Anyhow, shall we put it to a vote on these two methods and move on? I'm -1 on having them.