#include #include #include #include #include #define XMLCHARLEN 255 #define XSLT_METADATA_NAMESPACE (xmlChar *) "http://freeipa.org/xsl/metadata/1.0" #define XSLT_METADATA_NAMESPACE_PREFIX (xmlChar *) "md" #define XPATH_OUTPUT_HANDLER (xmlChar *) "//md:output_handler/md:*" enum { FIND_NAME = 1, FIND_VALUE }; extern xmlChar *default_namespace_prefix; xmlChar *get_default_namespace(xmlDocPtr doc); int validate_policy(const char *policy_file_name, char **ipa_policy_type, char **xslt_file_name); int print_all_attributes(const xmlNode *node); char *find_by_xpath(const xmlDocPtr doc, const xmlChar * xpath_expr, const int type);