libxml2
Loading...
Searching...
No Matches
catalog.h File Reference

interfaces to the Catalog handling system More...

Macros

#define XML_CATALOGS_NAMESPACE    (const xmlChar *) "urn:oasis:names:tc:entity:xmlns:xml:catalog"
 The namespace for the XML Catalogs elements.
#define XML_CATALOG_PI    (const xmlChar *) "oasis-xml-catalog"
 The specific XML Catalog Processing Instruction name.

Typedefs

typedef struct _xmlCatalog xmlCatalog
 XML catalog.

Functions

xmlCatalogxmlNewCatalog (int sgml)
 create a new Catalog.
xmlCatalogxmlLoadACatalog (const char *filename)
 Load the catalog and build the associated data structures.
xmlCatalogxmlLoadSGMLSuperCatalog (const char *filename)
 Load an SGML super catalog.
int xmlConvertSGMLCatalog (xmlCatalog *catal)
 Convert all the SGML catalog entries as XML ones.
int xmlACatalogAdd (xmlCatalog *catal, const xmlChar *type, const xmlChar *orig, const xmlChar *replace)
 Add an entry in the catalog, it may overwrite existing but different entries.
int xmlACatalogRemove (xmlCatalog *catal, const xmlChar *value)
 Remove an entry from the catalog.
xmlCharxmlACatalogResolve (xmlCatalog *catal, const xmlChar *pubID, const xmlChar *sysID)
 Do a complete resolution lookup of an External Identifier.
xmlCharxmlACatalogResolveSystem (xmlCatalog *catal, const xmlChar *sysID)
 Try to lookup the catalog resource for a system ID.
xmlCharxmlACatalogResolvePublic (xmlCatalog *catal, const xmlChar *pubID)
 Try to lookup the catalog local reference associated to a public ID in that catalog.
xmlCharxmlACatalogResolveURI (xmlCatalog *catal, const xmlChar *URI)
 Do a complete resolution lookup of an URI.
void xmlACatalogDump (xmlCatalog *catal, FILE *out)
 Dump the given catalog to the given file.
void xmlFreeCatalog (xmlCatalog *catal)
 Free the memory allocated to a Catalog.
int xmlCatalogIsEmpty (xmlCatalog *catal)
 Check is a catalog is empty.
void xmlInitializeCatalog (void)
 Load the default system catalog.
int xmlLoadCatalog (const char *filename)
 Load the catalog and makes its definitions effective for the default external entity loader.
void xmlLoadCatalogs (const char *paths)
 Load the catalogs and makes their definitions effective for the default external entity loader.
void xmlCatalogCleanup (void)
 Free up all the memory associated with catalogs.
void xmlCatalogDump (FILE *out)
 Dump all the global catalog content to the given file.
xmlCharxmlCatalogResolve (const xmlChar *pubID, const xmlChar *sysID)
 Do a complete resolution lookup of an External Identifier.
xmlCharxmlCatalogResolveSystem (const xmlChar *sysID)
 Try to lookup the catalog resource for a system ID.
xmlCharxmlCatalogResolvePublic (const xmlChar *pubID)
 Try to lookup the catalog reference associated to a public ID.
xmlCharxmlCatalogResolveURI (const xmlChar *URI)
 Do a complete resolution lookup of an URI.
int xmlCatalogAdd (const xmlChar *type, const xmlChar *orig, const xmlChar *replace)
 Add an entry in the catalog, it may overwrite existing but different entries.
int xmlCatalogRemove (const