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
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
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
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 show the text nodes?
Another thing that would be useful to have is a tag() method, so that