server/src/common/util/xml.h
Enno Rehling 0bc401ba8f XML Reader
- alle xml dateien sind echtes XML
- alle alten XML Leseroutinen sind raus
- Daten werden mit dem libxml DOM parser gelesen
- der alte XML Parser ist weg
- libraries required: libxml2, iconv
2004-03-28 20:53:47 +00:00

34 lines
1.1 KiB
C

/* vi: set ts=2:
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
| | Enno Rehling <enno@eressea-pbem.de>
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
| (c) 1998 - 2003 | Henning Peters <faroul@beyond.kn-bremen.de>
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
+-------------------+ Stefan Reich <reich@halbling.de>
This program may not be used, modified or distributed
without prior permission by the authors of Eressea.
*/
#ifndef H_UTIL_XML
#define H_UTIL_XML
#ifdef __cplusplus
extern "C" {
#endif
/* new xml functions: */
#include <libxml/tree.h>
typedef int (*xml_callback)(xmlDocPtr);
extern void xml_register_callback(xml_callback callback);
extern int read_xml(const char * filename);
extern double xml_fvalue(xmlNodePtr node, const char * name, double dflt);
extern int xml_ivalue(xmlNodePtr node, const char * name, int dflt);
extern boolean xml_bvalue(xmlNodePtr node, const char * name, boolean dflt);
#ifdef __cplusplus
}
#endif
#endif