Entry
How do I use the method descendants?
How do I use the method descendants?
Apr 15th, 2005 04:13
Martin Honnen,
The method descendants takes one optional argument, the name of
descendants to look for, and returns an XMLList with all of the matching
descendants of all XML objects in the XMLList it is called on.
If no name argument is passed in then the wild card '*' is used as the
name argument so that all descendants are returned.
[Note: instead of using the method descendants you can also use the
shorter descendants accessor .. e.g.
xmlList..descendantName
]