yumapro  24.10-2
YumaPro SDK
Loading...
Searching...
No Matches
ycontrol_xml.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3 * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4 *
5 * Unless required by applicable law or agreed to in writing,
6 * software distributed under the License is distributed on an
7 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8 * KIND, either express or implied. See the License for the
9 * specific language governing permissions and limitations
10 * under the License.
11 */
12#ifndef _H_ycontrol_xml
13#define _H_ycontrol_xml
14/* FILE: ycontrol_xml.h
15*********************************************************************
16* *
17* P U R P O S E *
18* *
19*********************************************************************/
20
27/*********************************************************************
28* *
29* C H A N G E H I S T O R Y *
30* *
31*********************************************************************
32
33date init comment
34----------------------------------------------------------------------
3513-apr-14 abb begun; start from mgr_xml.c
36*/
37
38/* From /usr/include/libxml2/libxml/ */
39#include <xmlreader.h>
40#include <xmlstring.h>
41
42#ifndef _H_xml_util
43#include "xml_util.h"
44#endif
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50/********************************************************************
51* *
52* C O N S T A N T S *
53* *
54*********************************************************************/
55
56/********************************************************************
57* *
58* T Y P E S *
59* *
60*********************************************************************/
61
62/********************************************************************
63* *
64* F U N C T I O N S *
65* *
66*********************************************************************/
67
68
69
70/* group defined in ycontrol_val_parse.h */
71
72
80/**************** XMLTextReader APIs ******************/
81
82
134extern status_t
135 ycontrol_xml_consume_node (xmlTextReaderPtr reader,
136 xml_node_t *node);
137
138
139
156extern status_t
157 ycontrol_xml_consume_node_nons (xmlTextReaderPtr reader,
158 xml_node_t *node);
159
160
161
176extern status_t
177 ycontrol_xml_consume_node_noadv (xmlTextReaderPtr reader,
178 xml_node_t *node);
179
180
197extern status_t
198 ycontrol_xml_skip_subtree (xmlTextReaderPtr reader,
199 const xml_node_t *startnode);
200
204#ifdef __cplusplus
205} /* end extern 'C' */
206#endif
207
208#endif /* _H_ycontrol_xml */
status_t
global error return code
Definition: status_enum.h:210
status_t ycontrol_xml_consume_node_noadv(xmlTextReaderPtr reader, xml_node_t *node)
re-get the current node
Definition: ycontrol_xml.c:149
status_t ycontrol_xml_consume_node_nons(xmlTextReaderPtr reader, xml_node_t *node)
consume node but do not generate namespace errors if seen.
Definition: ycontrol_xml.c:139
status_t ycontrol_xml_skip_subtree(xmlTextReaderPtr reader, const xml_node_t *startnode)
Skip the current subtree (due to parse or schema error)
Definition: ycontrol_xml.c:176
status_t ycontrol_xml_consume_node(xmlTextReaderPtr reader, xml_node_t *node)
Consume an XML node from the XmlTextReader.
Definition: ycontrol_xml.c:130
gather node data into a simple struct.
Definition: xml_util.h:207
XML Utilities.