CAEN Utility  2.0.2
Utilities for CAEN projects
CAENXMLParser.c File Reference

Tools to parse an XML file using libxml. More...

#include <CAENXMLParser.h>
#include <libxml/xpathInternals.h>
#include <libxml/globals.h>
#include <libxml/parser.h>
#include <libxml/xmlversion.h>
#include <libxml/xpath.h>
#include <CAENMultiplatform.h>
#include <CAENLogger.h>
Include dependency graph for CAENXMLParser.c:

Go to the source code of this file.

Functions

c_xmlfile_tc_xml_newfile (const char *filename)
 
c_xmlfile_tc_xml_newfile_from_memory (const char *buffer, int size)
 
void c_xml_freefile (c_xmlfile_t *file)
 
xmlNode * c_xml_getrootnode (const c_xmlfile_t *file)
 
xmlNodeSet * c_xml_getnodeset (c_xmlfile_t *file, const xmlChar *query)
 
void c_xml_freenodeset (xmlNodeSet *nodeset)
 
const char * c_xml_getattributevalue (const xmlNode *node, const char *attribute, bool warnEnable)
 
xmlNode * c_xml_getfirstnodefromxpathquery (c_xmlfile_t *file, const xmlChar *query)
 
xmlNode * c_xml_getnextelementfromname (xmlNode *node, const char *nodename)
 
xmlNode * c_getfirstsiblingelementfromname (xmlNode *node, const char *nodename)
 
xmlNode * c_xml_getfirstchildrenelementfromname (xmlNode *node, const char *nodename)
 
xmlNode * c_xml_getfirstdescendantelementfromname (xmlNode *node, const char *nodename)
 
const char * c_xml_getpath (const c_xmlfile_t *file)
 
int32_t c_xml_getcodefromnodechild (const xmlNode *node, double *code)
 
int32_t c_xml_getcodefromnode (const xmlNode *node, double *code)
 
int32_t c_xml_getcodefromcodename (const c_xmlfile_t *file, const char *__restrict category, const char *__restrict codename, double *code)
 
const char * c_xml_getattributevaluefromcodename (const c_xmlfile_t *file, const char *__restrict category, const char *__restrict codename, const char *__restrict attrname)
 
c_fcnhandle_t c_xml_getfunctionpointerfromcodename (const c_xmlfile_t *file, const char *codename)
 
void c_xml_parsercleanup (void)
 
int c_xml_snprintf (xmlChar *buf, int len, const char *msg,...)
 
int c_xml_strlen (const xmlChar *str)
 
const char * c_xml_parserversion (void)
 

Variables

static c_libhandle_t libHandle = NULL
 
static const c_locallogger_t __locallogger = { ( "CAENXMLParserLog.txt" ), ( "CAENXMLParser.c" ) }
 

Detailed Description

Tools to parse an XML file using libxml.

Author

Definition in file CAENXMLParser.c.

Variable Documentation

◆ libHandle

c_libhandle_t libHandle = NULL
static

Definition at line 50 of file CAENXMLParser.c.

◆ __locallogger

const c_locallogger_t __locallogger = { ( "CAENXMLParserLog.txt" ), ( "CAENXMLParser.c" ) }
static

Definition at line 52 of file CAENXMLParser.c.