fred-mod-eppd
|
#include <libxml/tree.h>
#include <libxml/xmlschemas.h>
Go to the source code of this file.
Macros | |
#define | NS_EPP "urn:ietf:params:xml:ns:epp-1.0" |
#define | NS_CONTACT "http://www.nic.cz/xml/epp/contact-1.6" |
#define | NS_DOMAIN "http://www.nic.cz/xml/epp/domain-1.4" |
#define | NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2" |
#define | NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3" |
#define | NS_FRED "http://www.nic.cz/xml/epp/fred-1.5" |
#define | NS_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2" |
#define | NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0" |
#define | NS_AUCTION "http://www.nic.cz/xml/epp/auction-1.0" |
#define | LOC_EPP NS_EPP " epp-1.0.xsd" |
#define | LOC_CONTACT NS_CONTACT " contact-1.6.6.xsd" |
#define | LOC_DOMAIN NS_DOMAIN " domain-1.4.5.xsd" |
#define | LOC_NSSET NS_NSSET " nsset-1.2.4.xsd" |
#define | LOC_KEYSET NS_KEYSET " keyset-1.3.4.xsd" |
#define | LOC_FRED NS_FRED " fred-1.5.0.xsd" |
#define | LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd" |
#define | LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.0.xsd" |
#define | LOC_AUCTION NS_AUCTION " auction-1.0.0.xsd" |
Enumerations | |
enum | valid_status { VAL_OK, VAL_NOT_VALID, VAL_ESCHEMA, VAL_EINTERNAL } |
Functions | |
valid_status | validate_doc (void *pool, xmlSchemaPtr schema, xmlDocPtr doc, qhead *err_list) |
char * | epp_getSubtree (void *pool, epp_command_data *cdata, const char *xpath_expr, int position) |
This file gathers declarations common to both libxml components (parser and generator).
#define LOC_AUCTION NS_AUCTION " auction-1.0.0.xsd" |
Namespace + location of auction xml schema
#define LOC_CONTACT NS_CONTACT " contact-1.6.6.xsd" |
Namespace + location of contact xml schema
#define LOC_DOMAIN NS_DOMAIN " domain-1.4.5.xsd" |
Namespace + location of domain xml schema
#define LOC_ENUMVAL NS_ENUMVAL " enumval-1.2.0.xsd" |
Namespace + location of enumval xml schema
#define LOC_EPP NS_EPP " epp-1.0.xsd" |
Namespace + location of epp xml schema
#define LOC_EXTRAADDR NS_EXTRAADDR " extra-addr-1.0.0.xsd" |
Namespace + location of extraaddr xml schema
#define LOC_FRED NS_FRED " fred-1.5.0.xsd" |
Namespace + location of fred xml schema
#define LOC_KEYSET NS_KEYSET " keyset-1.3.4.xsd" |
Namespace + location of keyset xml schema
#define LOC_NSSET NS_NSSET " nsset-1.2.4.xsd" |
Namespace + location of nsset xml schema
#define NS_AUCTION "http://www.nic.cz/xml/epp/auction-1.0" |
Our custom namespace used for auction support extension
#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_ENUMVAL "http://www.nic.cz/xml/epp/enumval-1.2" |
Our custom namespace used for enum validation extension
#define NS_EPP "urn:ietf:params:xml:ns:epp-1.0" |
Standard EPP xml namespace
#define NS_EXTRAADDR "http://www.nic.cz/xml/epp/extra-addr-1.0" |
Our custom namespace used for extra contact address extension
#define NS_FRED "http://www.nic.cz/xml/epp/fred-1.5" |
Our custom namespace used for extensions definition
#define NS_KEYSET "http://www.nic.cz/xml/epp/keyset-1.3" |
Our custom namespace used for keyset object
#define NS_NSSET "http://www.nic.cz/xml/epp/nsset-1.2" |
Our custom namespace used for nsset object
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. |
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. |