catalog

Name

catalog -- 

Synopsis



#define     XML_CATALOGS_NAMESPACE
int         xmlLoadCatalog                  (const char *filename);
void        xmlLoadCatalogs                 (const char *paths);
void        xmlCatalogCleanup               (void);
void        xmlCatalogDump                  (FILE *out);
const xmlChar* xmlCatalogGetSystem          (const xmlChar *sysID);
const xmlChar* xmlCatalogGetPublic          (const xmlChar *pubID);

Description

Details

XML_CATALOGS_NAMESPACE

#define     XML_CATALOGS_NAMESPACE


xmlLoadCatalog ()

int         xmlLoadCatalog                  (const char *filename);

Load the catalog and makes its definitions effective for the default external entity loader. It will recuse in CATALOG entries. TODO: this function is not thread safe, catalog initialization should be done once at startup

filename : a file path
Returns :0 in case of success -1 in case of error


xmlLoadCatalogs ()

void        xmlLoadCatalogs                 (const char *paths);

Load the catalogs and makes their definitions effective for the default external entity loader. TODO: this function is not thread safe, catalog initialization should be done once at startup

paths : a list of file path separated by ':' or spaces


xmlCatalogCleanup ()

void        xmlCatalogCleanup               (void);

Free up all the memory associated with catalogs


xmlCatalogDump ()

void        xmlCatalogDump                  (FILE *out);

Free up all the memory associated with catalogs

out : the file.


xmlCatalogGetSystem ()

const xmlChar* xmlCatalogGetSystem          (const xmlChar *sysID);

Try to lookup the resource associated to a system ID

sysID : the system ID string
Returns :the resource name if found or NULL otherwise.


xmlCatalogGetPublic ()

const xmlChar* xmlCatalogGetPublic          (const xmlChar *pubID);

Try to lookup the system ID associated to a public ID

pubID : the public ID string
Returns :the system ID if found or NULL otherwise.