YAZ
5.34.0
|
XML Include (not to be confused with W3C XInclude) More...
Go to the source code of this file.
Functions | |
int | yaz_xml_include_simple (xmlNode *n, const char *base_path) |
substitute include nodes in a tree More... | |
int | yaz_xml_include_glob (xmlNode *n, const char *base_path, unsigned flags) |
substitute include nodes in a tree More... | |
XML Include (not to be confused with W3C XInclude)
Definition in file xml_include.h.
int yaz_xml_include_glob | ( | xmlNode * | n, |
const char * | base_path, | ||
unsigned | flags | ||
) |
substitute include nodes in a tree
n | node where include is performed |
base_path | base_path - for relative file specs |
flags | for yaz_file_glob2 (YAZ_FILE_GLOB_...) |
0 | OK |
-1 | FAILURE |
Nodes of the form are substituted with contents of files matching glob-pattern. Do not use this function on XML from untrusted sources – from the net for example – local trusted XML configuration ONLY.
Definition at line 175 of file xml_include.c.
References yaz_xml_include_s::confdir, yaz_xml_include_s::glob_flags, and process_config_includes().
Referenced by yaz_xml_include_simple().
int yaz_xml_include_simple | ( | xmlNode * | n, |
const char * | base_path | ||
) |
substitute include nodes in a tree
n | node where include is performed |
base_path | base_path - for relative file specs |
0 | OK |
-1 | FAILURE |
Nodes of the form are substituted with contents of files matching glob-pattern. Do not use this function on XML from untrusted sources – from the net for example – local trusted XML configuration ONLY.
Definition at line 185 of file xml_include.c.
References yaz_xml_include_glob().