Re: [PHP-DEV] SimpleXML->children() and text nodes

2004-02-04 Thread Rob Richards
Adam's pretty much correct with his statements on this. The children() method's real purpose is for using namespaces within the document. Without an argument, it retrieves child elements within the default namespace, otherwise it will retrieve elements within the namespace passed in. It also sets

Re: [PHP-DEV] SimpleXML->children() and text nodes

2004-02-01 Thread Marcus Boerger
Hello Derick, Sunday, February 1, 2004, 12:47:17 AM, you wrote: > Hello, > I was wondering on how to iterate over the elements of in > the following piece of XML: > > > foo > bar > foobar > > > when I iterate over $s->body->children() I only get the and > the . Shouldn't it also sh

Re: [PHP-DEV] SimpleXML->children() and text nodes

2004-01-31 Thread Adam Maccabee Trachtenberg
On Sun, 1 Feb 2004, Derick Rethans wrote: > when I iterate over $s->body->children() I only get the and > the . Shouldn't it also show the text nodes? I hestitate to get back into this discussion, but I will give you the answers as best I can. :) The SimpleXML model prefers you to not mix eleme