fred-mod-eppd-2.17.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 
28 #include <libxml/tree.h>
29 #include <libxml/xmlschemas.h>
30 
32 #define NS_EPP "urn:ietf:params:xml:ns:epp-1.0"
33 
34 #define NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6"
35 
36 #define NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4"
37 
38 #define NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2"
39 
40 #define NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3"
41 
42 #define NS_FRED "http://www.nic.cz/xml/epp/fred-1.5"
43 
44 #define NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2"
45 
46 #define NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0"
47 
48 
50 #define LOC_EPP NS_EPP " epp-1.0.xsd"
51 
52 #define LOC_CONTACT NS_CONTACT " contact-1.6.1.xsd"
53 
54 #define LOC_DOMAIN NS_DOMAIN " domain-1.4.1.xsd"
55 
56 #define LOC_NSSET NS_NSSET " nsset-1.2.1.xsd"
57 
58 #define LOC_KEYSET NS_KEYSET " keyset-1.3.1.xsd"
59 
60 #define LOC_FRED NS_FRED " fred-1.5.0.xsd"
61 
62 #define LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd"
63 
64 #define LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.xsd"
65 
69 typedef enum {
74 } valid_status;
75 
85 valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list);
86 
100 char *epp_getSubtree(void *pool, epp_command_data *cdata, const char *xpath_expr, int position);
101 
102 #endif /* EPP_XMLCOMMON_H */
Document does not validate.
Definition: epp_xmlcommon.h:71
valid_status
Enumaration of statuses returned by validator.
Definition: epp_xmlcommon.h:69
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:72
This structure is central to the concept of the whole module.
Definition: epp_common.h:875
Internal error (malloc failed).
Definition: epp_xmlcommon.h:73
Document is valid.
Definition: epp_xmlcommon.h:70
Queue structure used on countless places throughout the program.
Definition: epp_common.h:302