#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_t * | xml_find_sibling (const mxml_node_t *node, const char *sibling_name) |
char * | xml_get_cdata (const mxml_node_t *node) |
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) |
mxml_node_t * | xml_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_t * | xml_new_cdata (mxml_node_t *parent, const char *text) |
const char * | whitespace_cb (mxml_node_t *node, int where) |
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 | |||
) |
Definition at line 54 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 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 | |||
) |
Definition at line 109 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(), message_xml_parse(), message_xml_parse__message(), and xml_get_deep_child().
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 | ) |
Definition at line 222 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(), message_xml_parse(), xml_find_sibling(), and xml_get_cdata().
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 | ) |
Definition at line 160 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(), agent_xml_parse__owner(), agent_xml_parse__sender(), and agent_xml_parse__wg_code().
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().