Main Page   File List   File Members  

mxml_iterator.c File Reference

#include <mxml.h>
#include <stdio.h>

Functions

MXML_ITERATOR * mxml_iterator_new (MXML_DOCUMENT *doc)
MXML_STATUS mxml_iterator_setup (MXML_ITERATOR *it, MXML_DOCUMENT *doc)
void mxml_iterator_destroy (MXML_ITERATOR *it)
MXML_NODE * mxml_iterator_top (MXML_ITERATOR *it)
void mxml_iterator_set_top (MXML_ITERATOR *it, MXML_NODE *node)
void mxml_iterator_copy (MXML_ITERATOR *dest, MXML_ITERATOR *src)
MXML_ITERATOR * mxml_iterator_clone (MXML_ITERATOR *src)
MXML_NODE * mxml_iterator_next (MXML_ITERATOR *it)
MXML_NODE * mxml_iterator_next_brother (MXML_ITERATOR *it)
MXML_NODE * mxml_iterator_previous_brother (MXML_ITERATOR *it)
MXML_NODE * mxml_iterator_descend (MXML_ITERATOR *it)
MXML_NODE * mxml_iterator_ascend (MXML_ITERATOR *it)
void mxml_iterator_insert_after (MXML_ITERATOR *it, MXML_NODE *node)
void mxml_iterator_insert_before (MXML_ITERATOR *it, MXML_NODE *node)
void mxml_iterator_insert_below (MXML_ITERATOR *it, MXML_NODE *node)
void mxml_iterator_add_below (MXML_ITERATOR *it, MXML_NODE *node)
MXML_NODE * mxml_iterator_scan_node (MXML_ITERATOR *it, char *name)
MXML_NODE * mxml_iterator_scan_attribute (MXML_ITERATOR *it, char *attrib)
MXML_NODE * mxml_iterator_scan_attribute_value (MXML_ITERATOR *it, char *attrib, char *val)

Function Documentation

void mxml_iterator_add_below MXML_ITERATOR *    it,
MXML_NODE *    node
 

Add a new node (or tree) after the last child of the iterator pointer This is the only function capable to add a new node to an empty tree.

MXML_NODE* mxml_iterator_ascend MXML_ITERATOR *    it
 

MXML_ITERATOR* mxml_iterator_clone MXML_ITERATOR *    src
 

void mxml_iterator_copy MXML_ITERATOR *    dest,
MXML_ITERATOR *    src
 

MXML_NODE* mxml_iterator_descend MXML_ITERATOR *    it
 

void mxml_iterator_destroy MXML_ITERATOR *    it
 

void mxml_iterator_insert_after MXML_ITERATOR *    it,
MXML_NODE *    node
 

void mxml_iterator_insert_before MXML_ITERATOR *    it,
MXML_NODE *    node
 

void mxml_iterator_insert_below MXML_ITERATOR *    it,
MXML_NODE *    node
 

Insert a new node between the iterator pointer and all its children

MXML_ITERATOR* mxml_iterator_new MXML_DOCUMENT *    doc
 

MXML_NODE* mxml_iterator_next MXML_ITERATOR *    it
 

Finds the next node in the hyerarcy, scanning all the childrens, then all the brothers, and then climbing back to the parent's brothers up to esausting all the nodes.

MXML_NODE* mxml_iterator_next_brother MXML_ITERATOR *    it
 

MXML_NODE* mxml_iterator_previous_brother MXML_ITERATOR *    it
 

MXML_NODE* mxml_iterator_scan_attribute MXML_ITERATOR *    it,
char *    attrib
 

Search for a node with the given attribute. Currently it does not uses indexed search.

MXML_NODE* mxml_iterator_scan_attribute_value MXML_ITERATOR *    it,
char *    attrib,
char *    val
 

Search for a node with the given attribute and the given value. Currently it does not uses indexed search.

MXML_NODE* mxml_iterator_scan_node MXML_ITERATOR *    it,
char *    name
 

Search for a node with the given name in the rest of the document Currently it does not uses indexed search.

void mxml_iterator_set_top MXML_ITERATOR *    it,
MXML_NODE *    node
 

MXML_STATUS mxml_iterator_setup MXML_ITERATOR *    it,
MXML_DOCUMENT *    doc
 

MXML_NODE* mxml_iterator_top MXML_ITERATOR *    it
 


Generated on Tue Jul 8 23:44:29 2003 for MXML by doxygen1.2.18