fred-mod-eppd-2.14.2
epp_xmlcommon.h
Go to the documentation of this file.
00001 /*  
00002  *  Copyright (C) 2007  CZ.NIC, z.s.p.o.
00003  *
00004  *  This file is part of FRED.
00005  *
00006  *  FRED is free software: you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation, version 2 of the License.
00009  *
00010  *  FRED is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with FRED.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00025 #ifndef EPP_XMLCOMMON_H
00026 #define EPP_XMLCOMMON_H
00027 
00029 #define NS_EPP  "urn:ietf:params:xml:ns:epp-1.0"
00030 
00031 #define NS_CONTACT      "http://www.nic.cz/xml/epp/contact-1.6"
00032 
00033 #define NS_DOMAIN       "http://www.nic.cz/xml/epp/domain-1.4"
00034 
00035 #define NS_NSSET        "http://www.nic.cz/xml/epp/nsset-1.2"
00036 
00037 #define NS_KEYSET       "http://www.nic.cz/xml/epp/keyset-1.3"
00038 
00039 #define NS_FRED         "http://www.nic.cz/xml/epp/fred-1.5"
00040 
00041 #define NS_ENUMVAL      "http://www.nic.cz/xml/epp/enumval-1.2"
00042 
00043 #define LOC_EPP NS_EPP " epp-1.0.xsd"
00044 
00045 #define LOC_CONTACT     NS_CONTACT " contact-1.6.1.xsd"
00046 
00047 #define LOC_DOMAIN      NS_DOMAIN " domain-1.4.1.xsd"
00048 
00049 #define LOC_NSSET       NS_NSSET " nsset-1.2.1.xsd"
00050 
00051 #define LOC_KEYSET      NS_KEYSET " keyset-1.3.1.xsd"
00052 
00053 #define LOC_FRED        NS_FRED " fred-1.5.0.xsd"
00054 
00055 #define LOC_ENUMVAL     NS_ENUMVAL " enumval-1.2.0.xsd"
00056 
00060 typedef enum {
00061         VAL_OK,        
00062         VAL_NOT_VALID, 
00063         VAL_ESCHEMA,   
00064         VAL_EINTERNAL  
00065 }valid_status;
00066 
00076 valid_status validate_doc(void *pool,
00077                 xmlSchemaPtr schema,
00078                 xmlDocPtr doc,
00079                 qhead *err_list);
00080 
00094 char *
00095 epp_getSubtree(void *pool,
00096                 epp_command_data *cdata,
00097                 const char *xpath_expr,
00098                 int position);
00099 
00100 #endif /* EPP_XMLCOMMON_H */