fred-mod-eppd-2.11.0
|
This file gathers declarations common to both libxml components (parser and generator). More...
Go to the source code of this file.
Defines | |
#define | NS_EPP "urn:ietf:params:xml:ns:epp-1.0" |
Standard EPP xml namespace. | |
#define | NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6" |
Our custom namespace used for contact object. | |
#define | NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4" |
Our custom namespace used for domain object. | |
#define | NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2" |
Our custom namespace used for nsset object. | |
#define | NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3" |
Our custom namespace used for keyset object. | |
#define | NS_FRED "http://www.nic.cz/xml/epp/fred-1.5" |
Our custom namespace used for extensions definition. | |
#define | NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2" |
Our custom namespace used for enum validation extension. | |
#define | LOC_EPP NS_EPP " epp-1.0.xsd" |
Namespace + location of epp xml schema. | |
#define | LOC_CONTACT NS_CONTACT " contact-1.6.1.xsd" |
Namespace + location of contact xml schema. | |
#define | LOC_DOMAIN NS_DOMAIN " domain-1.4.1.xsd" |
Namespace + location of domain xml schema. | |
#define | LOC_NSSET NS_NSSET " nsset-1.2.1.xsd" |
Namespace + location of nsset xml schema. | |
#define | LOC_KEYSET NS_KEYSET " keyset-1.3.1.xsd" |
Namespace + location of keyset xml schema. | |
#define | LOC_FRED NS_FRED " fred-1.5.0.xsd" |
Namespace + location of fred xml schema. | |
#define | LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd" |
Namespace + location of enumval xml schema. | |
Enumerations | |
enum | valid_status { VAL_OK, VAL_NOT_VALID, VAL_ESCHEMA, VAL_EINTERNAL } |
Enumaration of statuses returned by validator. More... | |
Functions | |
valid_status | validate_doc (void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list) |
Function for validating xml document. | |
char * | epp_getSubtree (void *pool, epp_command_data *cdata, const char *xpath_expr, int position) |
Get subtree of XML document based on xpath expression. |
This file gathers declarations common to both libxml components (parser and generator).
enum valid_status |
char* epp_getSubtree | ( | void * | pool, |
epp_command_data * | cdata, | ||
const char * | xpath_expr, | ||
int | position | ||
) |
Get subtree of XML document based on xpath expression.
If there is no node matching xpath expression at appropriate position, empty string is returned. In case of internal error NULL is returned.
pool | Pool for memory allocations. |
cdata | Structure containing xpath context and parsed document. |
xpath_expr | XPath expression which identifies element. |
position | Poradi elementu v mnozine pasujicich elementu. |
References epp_strdup(), epp_command_data::parsed_doc, and epp_command_data::xpath_ctx.
valid_status validate_doc | ( | void * | pool, |
xmlSchemaPtr | schema, | ||
xmlDocPtr | doc, | ||
qhead * | err_list | ||
) |
Function for validating xml document.
pool | Pool to allocate memory from. |
schema | Schema used for validation. |
doc | XML document. |
err_list | Initialized and empty list for storing encountered errors. |
References valerr_ctx::doc, valerr_ctx::err_list, valerr_ctx::pool, VAL_EINTERNAL, VAL_NOT_VALID, and VAL_OK.