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

#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)
const 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 246 of file xml_helper.c.

References mxml_node_s::child, mxml_value_u::element, MXML_WS_AFTER_CLOSE, MXML_WS_AFTER_OPEN, MXML_WS_BEFORE_CLOSE, MXML_WS_BEFORE_OPEN, mxml_value_s::name, mxml_node_s::parent, and mxml_node_s::value.

Referenced by main().

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

Definition at line 46 of file xml_helper.c.

References MXML_NO_DESCEND, mxmlFindElement(), mxml_node_s::parent, and xml_get_element_name().

char* xml_get_cdata ( const mxml_node_t node  ) 

Definition at line 68 of file xml_helper.c.

References 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 
)

Definition at line 101 of file xml_helper.c.

References mxmlFindElement().

Referenced by agent_return_xml_parse(), agent_xml_parse__agent_data(), agent_xml_parse__data(), agent_xml_parse__mobile_agent(), agent_xml_parse__task(), and xml_get_deep_child().

mxml_node_t* xml_get_deep_child ( const mxml_node_t parent,
const char **  child_path 
)

Definition at line 120 of file xml_helper.c.

References MXML_NO_DESCEND, node, and xml_get_child().

const char* xml_get_element_name ( const mxml_node_t node  ) 

Definition at line 214 of file xml_helper.c.

References mxml_value_u::element, MXML_ELEMENT, mxml_value_s::name, mxml_node_s::type, and mxml_node_s::value.

Referenced by agent_xml_parse__data(), agent_xml_parse__mobile_agent(), agent_xml_parse__row(), xml_find_sibling(), and xml_get_cdata().

mxml_node_t* xml_get_next_element ( const mxml_node_t node  ) 

Definition at line 134 of file xml_helper.c.

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

Referenced by agent_xml_parse__task().

char* xml_get_text ( const mxml_node_t node  ) 

Definition at line 152 of file xml_helper.c.

References CHECK_NULL, mxml_node_s::child, mxml_value_u::element, MXML_ELEMENT, MXML_TEXT, mxml_value_s::name, mxml_node_s::next, mxml_text_s::string, mxml_value_u::text, mxml_node_s::type, mxml_node_s::value, and xml_get_cdata().

Referenced by agent_xml_parse__agent_code(), agent_xml_parse__home(), agent_xml_parse__name(), and agent_xml_parse__owner().

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

Definition at line 227 of file xml_helper.c.

References CHECK_NULL, mxmlNewElement(), and node.

Referenced by agent_xml_compose__agent_code().


Generated on Fri May 16 14:49:57 2008 for Mobile-C by  doxygen 1.5.4