ICI Modules: xml: process


Modules by name : by type

Synopsis

array = xml.process(array, struct [, any])

Description

Traverses the in-memory XML document given as the array of element structs (as returned by xml.read()) using the supplied map structure that maps tag names to functions, the function being called when that tag is found in the document hierarchy. The optional third argument is a user-defined argument to pass the functions defined in the map structure and defaults to NULL if not given.

The keys used in the map structure are strings containing the tag names to be matched in the input. The values are function, or method, objects that are to be invoked on that element. The functions are called with two arguments, the first being the matching element and the second the, optional, user-supplied data argument passed to this function.