fred-mod-eppd-2.16.0
epp_xmlcommon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 CZ.NIC, z.s.p.o.
3  *
4  * This file is part of FRED.
5  *
6  * FRED is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, version 2 of the License.
9  *
10  * FRED is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FRED. If not, see <http://www.gnu.org/licenses/>.
17  */
25 #ifndef EPP_XMLCOMMON_H
26 #define EPP_XMLCOMMON_H
27 
29 #define NS_EPP "urn:ietf:params:xml:ns:epp-1.0"
30 
31 #define NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6"
32 
33 #define NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4"
34 
35 #define NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2"
36 
37 #define NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3"
38 
39 #define NS_FRED "http://www.nic.cz/xml/epp/fred-1.5"
40 
41 #define NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2"
42 
43 #define NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0"
44 
45 
47 #define LOC_EPP NS_EPP " epp-1.0.xsd"
48 
49 #define LOC_CONTACT NS_CONTACT " contact-1.6.1.xsd"
50 
51 #define LOC_DOMAIN NS_DOMAIN " domain-1.4.1.xsd"
52 
53 #define LOC_NSSET NS_NSSET " nsset-1.2.1.xsd"
54 
55 #define LOC_KEYSET NS_KEYSET " keyset-1.3.1.xsd"
56 
57 #define LOC_FRED NS_FRED " fred-1.5.0.xsd"
58 
59 #define LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd"
60 
61 #define LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.xsd"
62 
66 typedef enum {
71 } valid_status;
72 
82 valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list);
83 
97 char *epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position);
98 
99 #endif /* EPP_XMLCOMMON_H */
Document does not validate.
Definition: epp_xmlcommon.h:68
valid_status
Enumaration of statuses returned by validator.
Definition: epp_xmlcommon.h:66
valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list)
Function for validating xml document.
Definition: epp_xmlcommon.c:144
char * epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position)
Get subtree of XML document based on xpath expression.
Definition: epp_xmlcommon.c:177
Error when loading or parsing schema.
Definition: epp_xmlcommon.h:69
This structure is central to the concept of the whole module.
Definition: epp_common.h:875
Internal error (malloc failed).
Definition: epp_xmlcommon.h:70
Document is valid.
Definition: epp_xmlcommon.h:67
Queue structure used on countless places throughout the program.
Definition: epp_common.h:302