Contents Previous Next

mxmlIndexNew()

Description

Create a new index.

The index will contain all nodes that contain the named element and/or attribute. If both "element" and "attr" are NULL, then the index will contain a sorted list of the elements in the node tree. Nodes are sorted by element name and optionally by attribute value if the "attr" argument is not NULL.

Syntax

mxml_index_t *
mxmlIndexNew( mxml_node_t * node, const char * element, const char * attr);

Arguments

NameDescription
nodeXML node tree
elementElement to index or NULL for all
attrAttribute to index or NULL for none

Returns

New index


Contents Previous Next