Re: SimpleXML and Default Cast To String

From: Date: Mon, 12 Jan 2004 21:54:36 +0000
Subject: Re: SimpleXML and Default Cast To String
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-7007@lists.php.net to get a copy of this message
> Hello Sterling, > > Monday, January 12, 2004, 10:33:08 PM, you wrote: > > >> > In theory, I like the idea of a unified set of XML helper extensions, > >> > but DOM's so big and ugly that I don't know if it plays well with > >> > others in the sandbox. > >> > >> We are not consistent! Not in any way. DOM uses studlyCaps and SimpleXML > >> uses underscores for its method names. Speaking of consistency we should > >> probably discuss whether we want to change all methods of SimpleXML to > >> studlyCaps (we cannot hcnage the DOM method names). Until RC1 i guess we > >> can do such changes if we all agree and see it to be important. > >> > > > Haven't you been reading the thread - there are no more methods! :) > > Ignorance is bliss. > > It makes no sense to drop all methods. IMO that'd be absolute nonsense. > Why? Every one of these methods can be done with simple xpath queries: hasChildren() getChildren() == /child::node() attributes() == /attribute::* count() == count(//self::node()) This is why xpath was invented, and why its there in the first place. -Sterling

« previous php.internals (#7007) next »