ICI Modules: xml: traverse


Modules by name : by type

Synopsis

xml.traverse(array, func [, any])

Description

Performs a depth-first traverse of the in-memory XML document, given as the first argument, calling the function for each element found in the document. The optional third agument specifies an argument passed to the function when it is called during document traversal.

The callback function is called witn two arguments, the current element and the, optional, user-supplied argument.