On Mon, 12 Jan 2004, Sterling Hughes wrote: > Its XML's SQL/regular expressions, draw what analogies to string processing > that you will, but I don't see: > > $results = simplexml_query($element, '/child::node()'); > foreach ($results as $result) { > echo $result; > } > > Signifigantly more complex then: > > $results = $element->getChildren(); > foreach ($results as $result) { > echo $result; > }
I do see it that way. The first one forces the user to learn a new (significantly complex) language to perform simple operations, even if it provides a more "powerful abstraction". - Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php