Go to the documentation of this file.
26 #ifndef EPP_XMLCOMMON_H
27 #define EPP_XMLCOMMON_H
29 #include <libxml/tree.h>
30 #include <libxml/xmlschemas.h>
33 #define NS_EPP "urn:ietf:params:xml:ns:epp-1.0"
35 #define NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6"
37 #define NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4"
39 #define NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2"
41 #define NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3"
43 #define NS_FRED "http://www.nic.cz/xml/epp/fred-1.5"
45 #define NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2"
47 #define NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0"
51 #define LOC_EPP NS_EPP " epp-1.0.xsd"
53 #define LOC_CONTACT NS_CONTACT " contact-1.6.1.xsd"
55 #define LOC_DOMAIN NS_DOMAIN " domain-1.4.1.xsd"
57 #define LOC_NSSET NS_NSSET " nsset-1.2.1.xsd"
59 #define LOC_KEYSET NS_KEYSET " keyset-1.3.1.xsd"
61 #define LOC_FRED NS_FRED " fred-1.5.0.xsd"
63 #define LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd"
65 #define LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.xsd"
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:169
@ VAL_EINTERNAL
Internal error (malloc failed).
Definition: epp_xmlcommon.h:74
char * reason
Human readable reason of error.
Definition: epp_common.h:221
char * epp_strdup(void *pool, const char *str)
Duplicate string from argument, the memory will be allocated from memory pool.
Definition: mod_eppd.c:404
xmlDocPtr doc
XML document.
Definition: epp_xmlcommon.c:39
@ VAL_NOT_VALID
Document does not validate.
Definition: epp_xmlcommon.h:72
valid_status
Enumaration of statuses returned by validator.
Definition: epp_xmlcommon.h:70
epp_errorspec spec
Specification of surrounding XML tags.
Definition: epp_common.h:212
This struct gathers context parameters used by error handler of libxml's validator.
Definition: epp_xmlcommon.c:35
@ VAL_ESCHEMA
Error when loading or parsing schema.
Definition: epp_xmlcommon.h:73
void * epp_malloc(void *pool, unsigned size)
Allocate memory from memory pool.
char * value
Client provided input which caused the error.
Definition: epp_common.h:206
Queue structure used on countless places throughout the program.
Definition: epp_common.h:309
void * pool
Pool to allocate memory from.
Definition: epp_xmlcommon.c:37
The struct represents one epp error in ExtValue element.
Definition: epp_common.h:203
valid_status validate_doc(void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list)
Function for validating xml document.
Definition: epp_xmlcommon.c:136
void * parsed_doc
Parsed XML document tree.
Definition: epp_common.h:918
@ VAL_OK
Document is valid.
Definition: epp_xmlcommon.h:71
qhead * err_list
List of encountered errors.
Definition: epp_xmlcommon.c:38
This structure is central to the concept of the whole module.
Definition: epp_common.h:909
void * xpath_ctx
XPath context.
Definition: epp_common.h:919
int q_add(void *pool, qhead *head, void *data)
Add new item to a queue (the item will be enqueued at the end of queue).
Definition: epp_common.c:31