YAZ  5.23.1
Functions
xml_include.h File Reference

XML Include (not to be confused with W3C XInclude) More...

#include <yaz/yconfig.h>
#include <yaz/xmltypes.h>
#include <yaz/file_glob.h>

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...
 

Detailed Description

XML Include (not to be confused with W3C XInclude)

Definition in file xml_include.h.

Function Documentation

int yaz_xml_include_glob ( xmlNode *  n,
const char *  base_path,
unsigned  flags 
)

substitute include nodes in a tree

Parameters
nnode where include is performed
base_pathbase_path - for relative file specs
flagsfor yaz_file_glob2 (YAZ_FILE_GLOB_...)
Return values
0OK
-1FAILURE

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 153 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

Parameters
nnode where include is performed
base_pathbase_path - for relative file specs
Return values
0OK
-1FAILURE

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 163 of file xml_include.c.

References yaz_xml_include_glob().