/home/dko/Projects/mobilec/trunk/src/xml_helper.c File Reference

#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <mxml.h>
#include "include/xml_helper.h"
#include "include/macros.h"

Go to the source code of this file.

Functions

mxml_node_txml_find_sibling (const mxml_node_t *node, const char *sibling_name)
char * xml_get_cdata (const mxml_node_t *node)
mxml_node_txml_get_child (const mxml_node_t *node, const char *child_name, int descend)
mxml_node_txml_get_deep_child (const mxml_node_t *parent, const char **child_path)
mxml_node_txml_get_next_element (const mxml_node_t *node)
char * xml_get_text (const mxml_node_t *node)
char * xml_get_element_name (const mxml_node_t *node)
mxml_node_txml_new_cdata (mxml_node_t *parent, const char *text)
const char * whitespace_cb (mxml_node_t *node, int where)

Function Documentation

const char* whitespace_cb ( mxml_node_t node,
int  where 
)

Definition at line 254 of file xml_helper.c.

References MXML_WS_AFTER_CLOSE, and MXML_WS_BEFORE_OPEN.

Referenced by main().

mxml_node_t* xml_find_sibling ( const mxml_node_t node,
const char *  sibling_name 
)
char* xml_get_cdata ( const mxml_node_t node  ) 

Definition at line 76 of file xml_helper.c.

References buf, CHECK_NULL, MXML_ELEMENT, mxml_node_s::type, and xml_get_element_name().

Referenced by xml_get_text().

mxml_node_t* xml_get_child ( const mxml_node_t node,
const char *  child_name,
int  descend 
)
mxml_node_t* xml_get_deep_child ( const mxml_node_t parent,
const char **  child_path 
)

Definition at line 128 of file xml_helper.c.

References MXML_NO_DESCEND, node, and xml_get_child().

char* xml_get_element_name ( const mxml_node_t node  ) 
mxml_node_t* xml_get_next_element ( const mxml_node_t node  ) 

Definition at line 142 of file xml_helper.c.

References MXML_ELEMENT, mxml_node_s::next, and mxml_node_s::type.

char* xml_get_text ( const mxml_node_t node  ) 
mxml_node_t* xml_new_cdata ( mxml_node_t parent,
const char *  text 
)

Definition at line 235 of file xml_helper.c.

References CHECK_NULL, mxmlNewElement(), and node.

Referenced by agent_xml_compose__agent_code().


Generated on Tue Jun 22 11:11:41 2010 for Mobile-C by  doxygen 1.6.1