gwenhywfar 5.12.1
xmlcmd_lxml.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Sat Apr 18 2018
3 copyright : (C) 2020 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * *
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Lesser General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2.1 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with this library; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21 * MA 02111-1307 USA *
22 * *
23 ***************************************************************************/
24
25
26#ifndef GWEN_XMLCMD_LXML_H
27#define GWEN_XMLCMD_LXML_H
28
29
30#include <gwenhywfar/xmlcmd.h>
31
32#include <gwenhywfar/db.h>
33#include <gwenhywfar/xml.h>
34
35#include <libxml/tree.h>
36
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42
44
45
47
50
52
55
58
61
62
65
66
67
68
73GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_GetXmlNode(xmlNodePtr n, const char *path, uint32_t flags);
74GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_FindFirstElement(xmlNodePtr parent, const char *elemName);
75GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_FindNextElement(xmlNodePtr elem, const char *elemName);
76
77GWENHYWFAR_API int GWEN_XmlCommanderLibXml_SetXmlCharValue(xmlNodePtr n, const char *path, const char *value);
78GWENHYWFAR_API const char *GWEN_XmlCommanderLibXml_GetXmlCharValue(xmlNodePtr n, const char *path, const char *defValue);
79
80GWENHYWFAR_API int GWEN_XmlCommanderLibXml_SetIntValue(xmlNodePtr n, const char *path, int value);
81GWENHYWFAR_API int GWEN_XmlCommanderLibXml_GetIntValue(xmlNodePtr n, const char *path, int defValue);
82
83GWENHYWFAR_API const char *GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(xmlNodePtr elem, const char *path, const char *defValue);
84GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetXmlCharValueByPath(xmlNodePtr elem, const char *path, const char *value);
85
93#ifdef __cplusplus
94}
95#endif
96
97
98
99#endif /* GWEN_XML2DB_H */
struct GWEN_DB_NODE GWEN_DB_NODE
Definition db.h:228
#define GWENHYWFAR_API
struct GWEN_XMLCOMMANDER GWEN_XMLCOMMANDER
Definition xmlcmd.h:39
GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_GetXmlNode(xmlNodePtr n, const char *path, uint32_t flags)
GWENHYWFAR_API GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetCurrentTempDbGroup(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_EnterDocNode(GWEN_XMLCOMMANDER *cmd, xmlNodePtr xNode)
GWENHYWFAR_API GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetCurrentDbGroup(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API int GWEN_XmlCommanderLibXml_SetXmlCharValue(xmlNodePtr n, const char *path, const char *value)
GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_FindNextElement(xmlNodePtr elem, const char *elemName)
GWENHYWFAR_API const char * GWEN_XmlCommanderLibXml_GetXmlCharValue(xmlNodePtr n, const char *path, const char *defValue)
GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_FindFirstElement(xmlNodePtr parent, const char *elemName)
GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_GetCurrentDocNode(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetCurrentTempDbGroup(GWEN_XMLCOMMANDER *cmd, GWEN_DB_NODE *db)
GWENHYWFAR_API const char * GWEN_XmlCommanderLibXml_GetXmlCharValueByPath(xmlNodePtr elem, const char *path, const char *defValue)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetTempDbRoot(GWEN_XMLCOMMANDER *cmd, GWEN_DB_NODE *db)
GWENHYWFAR_API GWEN_XMLCOMMANDER * GWEN_XmlCommanderLibXml_new(xmlNodePtr documentRoot, GWEN_DB_NODE *dbRoot)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetXmlCharValueByPath(xmlNodePtr elem, const char *path, const char *value)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetCurrentDocNode(GWEN_XMLCOMMANDER *cmd, xmlNodePtr n)
GWENHYWFAR_API xmlNodePtr GWEN_XmlCommanderLibXml_GetDocRoot(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetTempDbRoot(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_SetCurrentDbGroup(GWEN_XMLCOMMANDER *cmd, GWEN_DB_NODE *db)
GWENHYWFAR_API void GWEN_XmlCommanderLibXml_LeaveDocNode(GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API int GWEN_XmlCommanderLibXml_GetIntValue(xmlNodePtr n, const char *path, int defValue)
GWENHYWFAR_API GWEN_DB_NODE * GWEN_XmlCommanderLibXml_GetDbRoot(const GWEN_XMLCOMMANDER *cmd)
GWENHYWFAR_API int GWEN_XmlCommanderLibXml_SetIntValue(xmlNodePtr n, const char *path, int value)