Get XML setting element value. More...
#include <xml_utils.h>
Go to the source code of this file.
Functions | |
xmlChar * | xml_get_setting (xmlConfig_t *conf, char *path) |
Get XML setting element value. |
Get XML setting element value.
Definition in file xml_get_setting.c.
xmlChar* xml_get_setting | ( | xmlConfig_t * | conf, | |
char * | path | |||
) |
Get XML setting element value.
[in] | conf | XML information for DOM and XPath |
[in] | path | path for XPath |
Definition at line 58 of file xml_get_setting.c.
References xml_get_node_by_xpath().
Referenced by load_conf(), and xml_print_setting().
00058 { 00066 xmlNodePtr nodeptr; 00067 00068 /* Get DOM node pointer using XPath */ 00069 nodeptr = xml_get_node_by_xpath(conf, path); 00070 00071 if (nodeptr != NULL) { 00072 return xmlNodeGetContent(nodeptr); 00073 } 00074 else 00075 return NULL; 00076 }