xml_get_setting.c File Reference

Get XML setting element value. More...

#include <xml_utils.h>
Include dependency graph for xml_get_setting.c:

Go to the source code of this file.

Functions

xmlChar * xml_get_setting (xmlConfig_t *conf, char *path)
 Get XML setting element value.

Detailed Description

Get XML setting element value.

Definition in file xml_get_setting.c.


Function Documentation

xmlChar* xml_get_setting ( xmlConfig_t conf,
char *  path 
)

Get XML setting element value.

Parameters:
[in] conf XML information for DOM and XPath
[in] path path for XPath
Returns:
XML string value

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 }


Generated on 12 May 2016 for DSCLIM by  doxygen 1.6.1