Blame legacy.c

Packit Service a31ea6
/*
Packit Service a31ea6
 * legacy.c: set of deprecated routines, not to be used anymore but
Packit Service a31ea6
 *           kept purely for ABI compatibility
Packit Service a31ea6
 *
Packit Service a31ea6
 * See Copyright for the status of this software.
Packit Service a31ea6
 *
Packit Service a31ea6
 * daniel@veillard.com
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
#define IN_LIBXML
Packit Service a31ea6
#include "libxml.h"
Packit Service a31ea6
Packit Service a31ea6
#ifdef LIBXML_LEGACY_ENABLED
Packit Service a31ea6
#include <string.h>
Packit Service a31ea6
Packit Service a31ea6
#include <libxml/tree.h>
Packit Service a31ea6
#include <libxml/entities.h>
Packit Service a31ea6
#include <libxml/SAX.h>
Packit Service a31ea6
#include <libxml/parserInternals.h>
Packit Service a31ea6
#include <libxml/HTMLparser.h>
Packit Service a31ea6
Packit Service a31ea6
void xmlUpgradeOldNs(xmlDocPtr doc);
Packit Service a31ea6
Packit Service a31ea6
/************************************************************************
Packit Service a31ea6
 *									*
Packit Service a31ea6
 *		Deprecated functions kept for compatibility		*
Packit Service a31ea6
 *									*
Packit Service a31ea6
 ************************************************************************/
Packit Service a31ea6
Packit Service a31ea6
#ifdef LIBXML_HTML_ENABLED
Packit Service a31ea6
xmlChar *htmlDecodeEntities(htmlParserCtxtPtr ctxt, int len, xmlChar end,
Packit Service a31ea6
                            xmlChar end2, xmlChar end3);
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * htmlDecodeEntities:
Packit Service a31ea6
 * @ctxt:  the parser context
Packit Service a31ea6
 * @len:  the len to decode (in bytes !), -1 for no size limit
Packit Service a31ea6
 * @end:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 * @end2:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 * @end3:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 *
Packit Service a31ea6
 * Substitute the HTML entities by their value
Packit Service a31ea6
 *
Packit Service a31ea6
 * DEPRECATED !!!!
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns A newly allocated string with the substitution done. The caller
Packit Service a31ea6
 *      must deallocate it !
Packit Service a31ea6
 */
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
htmlDecodeEntities(htmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
Packit Service a31ea6
                   int len ATTRIBUTE_UNUSED, xmlChar end ATTRIBUTE_UNUSED,
Packit Service a31ea6
                   xmlChar end2 ATTRIBUTE_UNUSED,
Packit Service a31ea6
                   xmlChar end3 ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "htmlDecodeEntities() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
#endif
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlInitializePredefinedEntities:
Packit Service a31ea6
 *
Packit Service a31ea6
 * Set up the predefined entities.
Packit Service a31ea6
 * Deprecated call
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
xmlInitializePredefinedEntities(void)
Packit Service a31ea6
{
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlCleanupPredefinedEntities:
Packit Service a31ea6
 *
Packit Service a31ea6
 * Cleanup up the predefined entities table.
Packit Service a31ea6
 * Deprecated call
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
xmlCleanupPredefinedEntities(void)
Packit Service a31ea6
{
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
static const char *xmlFeaturesList[] = {
Packit Service a31ea6
    "validate",
Packit Service a31ea6
    "load subset",
Packit Service a31ea6
    "keep blanks",
Packit Service a31ea6
    "disable SAX",
Packit Service a31ea6
    "fetch external entities",
Packit Service a31ea6
    "substitute entities",
Packit Service a31ea6
    "gather line info",
Packit Service a31ea6
    "user data",
Packit Service a31ea6
    "is html",
Packit Service a31ea6
    "is standalone",
Packit Service a31ea6
    "stop parser",
Packit Service a31ea6
    "document",
Packit Service a31ea6
    "is well formed",
Packit Service a31ea6
    "is valid",
Packit Service a31ea6
    "SAX block",
Packit Service a31ea6
    "SAX function internalSubset",
Packit Service a31ea6
    "SAX function isStandalone",
Packit Service a31ea6
    "SAX function hasInternalSubset",
Packit Service a31ea6
    "SAX function hasExternalSubset",
Packit Service a31ea6
    "SAX function resolveEntity",
Packit Service a31ea6
    "SAX function getEntity",
Packit Service a31ea6
    "SAX function entityDecl",
Packit Service a31ea6
    "SAX function notationDecl",
Packit Service a31ea6
    "SAX function attributeDecl",
Packit Service a31ea6
    "SAX function elementDecl",
Packit Service a31ea6
    "SAX function unparsedEntityDecl",
Packit Service a31ea6
    "SAX function setDocumentLocator",
Packit Service a31ea6
    "SAX function startDocument",
Packit Service a31ea6
    "SAX function endDocument",
Packit Service a31ea6
    "SAX function startElement",
Packit Service a31ea6
    "SAX function endElement",
Packit Service a31ea6
    "SAX function reference",
Packit Service a31ea6
    "SAX function characters",
Packit Service a31ea6
    "SAX function ignorableWhitespace",
Packit Service a31ea6
    "SAX function processingInstruction",
Packit Service a31ea6
    "SAX function comment",
Packit Service a31ea6
    "SAX function warning",
Packit Service a31ea6
    "SAX function error",
Packit Service a31ea6
    "SAX function fatalError",
Packit Service a31ea6
    "SAX function getParameterEntity",
Packit Service a31ea6
    "SAX function cdataBlock",
Packit Service a31ea6
    "SAX function externalSubset",
Packit Service a31ea6
};
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlGetFeaturesList:
Packit Service a31ea6
 * @len:  the length of the features name array (input/output)
Packit Service a31ea6
 * @result:  an array of string to be filled with the features name.
Packit Service a31ea6
 *
Packit Service a31ea6
 * Copy at most *@len feature names into the @result array
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns -1 in case or error, or the total number of features,
Packit Service a31ea6
 *            len is updated with the number of strings copied,
Packit Service a31ea6
 *            strings must not be deallocated
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
xmlGetFeaturesList(int *len, const char **result)
Packit Service a31ea6
{
Packit Service a31ea6
    int ret, i;
Packit Service a31ea6
Packit Service a31ea6
    ret = sizeof(xmlFeaturesList) / sizeof(xmlFeaturesList[0]);
Packit Service a31ea6
    if ((len == NULL) || (result == NULL))
Packit Service a31ea6
        return (ret);
Packit Service a31ea6
    if ((*len < 0) || (*len >= 1000))
Packit Service a31ea6
        return (-1);
Packit Service a31ea6
    if (*len > ret)
Packit Service a31ea6
        *len = ret;
Packit Service a31ea6
    for (i = 0; i < *len; i++)
Packit Service a31ea6
        result[i] = xmlFeaturesList[i];
Packit Service a31ea6
    return (ret);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlGetFeature:
Packit Service a31ea6
 * @ctxt:  an XML/HTML parser context
Packit Service a31ea6
 * @name:  the feature name
Packit Service a31ea6
 * @result:  location to store the result
Packit Service a31ea6
 *
Packit Service a31ea6
 * Read the current value of one feature of this parser instance
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns -1 in case or error, 0 otherwise
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
xmlGetFeature(xmlParserCtxtPtr ctxt, const char *name, void *result)
Packit Service a31ea6
{
Packit Service a31ea6
    if ((ctxt == NULL) || (name == NULL) || (result == NULL))
Packit Service a31ea6
        return (-1);
Packit Service a31ea6
Packit Service a31ea6
    if (!strcmp(name, "validate")) {
Packit Service a31ea6
        *((int *) result) = ctxt->validate;
Packit Service a31ea6
    } else if (!strcmp(name, "keep blanks")) {
Packit Service a31ea6
        *((int *) result) = ctxt->keepBlanks;
Packit Service a31ea6
    } else if (!strcmp(name, "disable SAX")) {
Packit Service a31ea6
        *((int *) result) = ctxt->disableSAX;
Packit Service a31ea6
    } else if (!strcmp(name, "fetch external entities")) {
Packit Service a31ea6
        *((int *) result) = ctxt->loadsubset;
Packit Service a31ea6
    } else if (!strcmp(name, "substitute entities")) {
Packit Service a31ea6
        *((int *) result) = ctxt->replaceEntities;
Packit Service a31ea6
    } else if (!strcmp(name, "gather line info")) {
Packit Service a31ea6
        *((int *) result) = ctxt->record_info;
Packit Service a31ea6
    } else if (!strcmp(name, "user data")) {
Packit Service a31ea6
        *((void **) result) = ctxt->userData;
Packit Service a31ea6
    } else if (!strcmp(name, "is html")) {
Packit Service a31ea6
        *((int *) result) = ctxt->html;
Packit Service a31ea6
    } else if (!strcmp(name, "is standalone")) {
Packit Service a31ea6
        *((int *) result) = ctxt->standalone;
Packit Service a31ea6
    } else if (!strcmp(name, "document")) {
Packit Service a31ea6
        *((xmlDocPtr *) result) = ctxt->myDoc;
Packit Service a31ea6
    } else if (!strcmp(name, "is well formed")) {
Packit Service a31ea6
        *((int *) result) = ctxt->wellFormed;
Packit Service a31ea6
    } else if (!strcmp(name, "is valid")) {
Packit Service a31ea6
        *((int *) result) = ctxt->valid;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX block")) {
Packit Service a31ea6
        *((xmlSAXHandlerPtr *) result) = ctxt->sax;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function internalSubset")) {
Packit Service a31ea6
        *((internalSubsetSAXFunc *) result) = ctxt->sax->internalSubset;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function isStandalone")) {
Packit Service a31ea6
        *((isStandaloneSAXFunc *) result) = ctxt->sax->isStandalone;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function hasInternalSubset")) {
Packit Service a31ea6
        *((hasInternalSubsetSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->hasInternalSubset;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function hasExternalSubset")) {
Packit Service a31ea6
        *((hasExternalSubsetSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->hasExternalSubset;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function resolveEntity")) {
Packit Service a31ea6
        *((resolveEntitySAXFunc *) result) = ctxt->sax->resolveEntity;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function getEntity")) {
Packit Service a31ea6
        *((getEntitySAXFunc *) result) = ctxt->sax->getEntity;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function entityDecl")) {
Packit Service a31ea6
        *((entityDeclSAXFunc *) result) = ctxt->sax->entityDecl;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function notationDecl")) {
Packit Service a31ea6
        *((notationDeclSAXFunc *) result) = ctxt->sax->notationDecl;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function attributeDecl")) {
Packit Service a31ea6
        *((attributeDeclSAXFunc *) result) = ctxt->sax->attributeDecl;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function elementDecl")) {
Packit Service a31ea6
        *((elementDeclSAXFunc *) result) = ctxt->sax->elementDecl;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function unparsedEntityDecl")) {
Packit Service a31ea6
        *((unparsedEntityDeclSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->unparsedEntityDecl;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function setDocumentLocator")) {
Packit Service a31ea6
        *((setDocumentLocatorSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->setDocumentLocator;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function startDocument")) {
Packit Service a31ea6
        *((startDocumentSAXFunc *) result) = ctxt->sax->startDocument;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function endDocument")) {
Packit Service a31ea6
        *((endDocumentSAXFunc *) result) = ctxt->sax->endDocument;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function startElement")) {
Packit Service a31ea6
        *((startElementSAXFunc *) result) = ctxt->sax->startElement;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function endElement")) {
Packit Service a31ea6
        *((endElementSAXFunc *) result) = ctxt->sax->endElement;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function reference")) {
Packit Service a31ea6
        *((referenceSAXFunc *) result) = ctxt->sax->reference;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function characters")) {
Packit Service a31ea6
        *((charactersSAXFunc *) result) = ctxt->sax->characters;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function ignorableWhitespace")) {
Packit Service a31ea6
        *((ignorableWhitespaceSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->ignorableWhitespace;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function processingInstruction")) {
Packit Service a31ea6
        *((processingInstructionSAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->processingInstruction;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function comment")) {
Packit Service a31ea6
        *((commentSAXFunc *) result) = ctxt->sax->comment;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function warning")) {
Packit Service a31ea6
        *((warningSAXFunc *) result) = ctxt->sax->warning;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function error")) {
Packit Service a31ea6
        *((errorSAXFunc *) result) = ctxt->sax->error;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function fatalError")) {
Packit Service a31ea6
        *((fatalErrorSAXFunc *) result) = ctxt->sax->fatalError;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function getParameterEntity")) {
Packit Service a31ea6
        *((getParameterEntitySAXFunc *) result) =
Packit Service a31ea6
            ctxt->sax->getParameterEntity;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function cdataBlock")) {
Packit Service a31ea6
        *((cdataBlockSAXFunc *) result) = ctxt->sax->cdataBlock;
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function externalSubset")) {
Packit Service a31ea6
        *((externalSubsetSAXFunc *) result) = ctxt->sax->externalSubset;
Packit Service a31ea6
    } else {
Packit Service a31ea6
        return (-1);
Packit Service a31ea6
    }
Packit Service a31ea6
    return (0);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlSetFeature:
Packit Service a31ea6
 * @ctxt:  an XML/HTML parser context
Packit Service a31ea6
 * @name:  the feature name
Packit Service a31ea6
 * @value:  pointer to the location of the new value
Packit Service a31ea6
 *
Packit Service a31ea6
 * Change the current value of one feature of this parser instance
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns -1 in case or error, 0 otherwise
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
xmlSetFeature(xmlParserCtxtPtr ctxt, const char *name, void *value)
Packit Service a31ea6
{
Packit Service a31ea6
    if ((ctxt == NULL) || (name == NULL) || (value == NULL))
Packit Service a31ea6
        return (-1);
Packit Service a31ea6
Packit Service a31ea6
    if (!strcmp(name, "validate")) {
Packit Service a31ea6
        int newvalidate = *((int *) value);
Packit Service a31ea6
Packit Service a31ea6
        if ((!ctxt->validate) && (newvalidate != 0)) {
Packit Service a31ea6
            if (ctxt->vctxt.warning == NULL)
Packit Service a31ea6
                ctxt->vctxt.warning = xmlParserValidityWarning;
Packit Service a31ea6
            if (ctxt->vctxt.error == NULL)
Packit Service a31ea6
                ctxt->vctxt.error = xmlParserValidityError;
Packit Service a31ea6
            ctxt->vctxt.nodeMax = 0;
Packit Service a31ea6
        }
Packit Service a31ea6
        ctxt->validate = newvalidate;
Packit Service a31ea6
    } else if (!strcmp(name, "keep blanks")) {
Packit Service a31ea6
        ctxt->keepBlanks = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "disable SAX")) {
Packit Service a31ea6
        ctxt->disableSAX = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "fetch external entities")) {
Packit Service a31ea6
        ctxt->loadsubset = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "substitute entities")) {
Packit Service a31ea6
        ctxt->replaceEntities = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "gather line info")) {
Packit Service a31ea6
        ctxt->record_info = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "user data")) {
Packit Service a31ea6
        ctxt->userData = *((void **) value);
Packit Service a31ea6
    } else if (!strcmp(name, "is html")) {
Packit Service a31ea6
        ctxt->html = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "is standalone")) {
Packit Service a31ea6
        ctxt->standalone = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "document")) {
Packit Service a31ea6
        ctxt->myDoc = *((xmlDocPtr *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "is well formed")) {
Packit Service a31ea6
        ctxt->wellFormed = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "is valid")) {
Packit Service a31ea6
        ctxt->valid = *((int *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX block")) {
Packit Service a31ea6
        ctxt->sax = *((xmlSAXHandlerPtr *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function internalSubset")) {
Packit Service a31ea6
        ctxt->sax->internalSubset = *((internalSubsetSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function isStandalone")) {
Packit Service a31ea6
        ctxt->sax->isStandalone = *((isStandaloneSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function hasInternalSubset")) {
Packit Service a31ea6
        ctxt->sax->hasInternalSubset =
Packit Service a31ea6
            *((hasInternalSubsetSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function hasExternalSubset")) {
Packit Service a31ea6
        ctxt->sax->hasExternalSubset =
Packit Service a31ea6
            *((hasExternalSubsetSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function resolveEntity")) {
Packit Service a31ea6
        ctxt->sax->resolveEntity = *((resolveEntitySAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function getEntity")) {
Packit Service a31ea6
        ctxt->sax->getEntity = *((getEntitySAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function entityDecl")) {
Packit Service a31ea6
        ctxt->sax->entityDecl = *((entityDeclSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function notationDecl")) {
Packit Service a31ea6
        ctxt->sax->notationDecl = *((notationDeclSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function attributeDecl")) {
Packit Service a31ea6
        ctxt->sax->attributeDecl = *((attributeDeclSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function elementDecl")) {
Packit Service a31ea6
        ctxt->sax->elementDecl = *((elementDeclSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function unparsedEntityDecl")) {
Packit Service a31ea6
        ctxt->sax->unparsedEntityDecl =
Packit Service a31ea6
            *((unparsedEntityDeclSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function setDocumentLocator")) {
Packit Service a31ea6
        ctxt->sax->setDocumentLocator =
Packit Service a31ea6
            *((setDocumentLocatorSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function startDocument")) {
Packit Service a31ea6
        ctxt->sax->startDocument = *((startDocumentSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function endDocument")) {
Packit Service a31ea6
        ctxt->sax->endDocument = *((endDocumentSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function startElement")) {
Packit Service a31ea6
        ctxt->sax->startElement = *((startElementSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function endElement")) {
Packit Service a31ea6
        ctxt->sax->endElement = *((endElementSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function reference")) {
Packit Service a31ea6
        ctxt->sax->reference = *((referenceSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function characters")) {
Packit Service a31ea6
        ctxt->sax->characters = *((charactersSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function ignorableWhitespace")) {
Packit Service a31ea6
        ctxt->sax->ignorableWhitespace =
Packit Service a31ea6
            *((ignorableWhitespaceSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function processingInstruction")) {
Packit Service a31ea6
        ctxt->sax->processingInstruction =
Packit Service a31ea6
            *((processingInstructionSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function comment")) {
Packit Service a31ea6
        ctxt->sax->comment = *((commentSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function warning")) {
Packit Service a31ea6
        ctxt->sax->warning = *((warningSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function error")) {
Packit Service a31ea6
        ctxt->sax->error = *((errorSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function fatalError")) {
Packit Service a31ea6
        ctxt->sax->fatalError = *((fatalErrorSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function getParameterEntity")) {
Packit Service a31ea6
        ctxt->sax->getParameterEntity =
Packit Service a31ea6
            *((getParameterEntitySAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function cdataBlock")) {
Packit Service a31ea6
        ctxt->sax->cdataBlock = *((cdataBlockSAXFunc *) value);
Packit Service a31ea6
    } else if (!strcmp(name, "SAX function externalSubset")) {
Packit Service a31ea6
        ctxt->sax->externalSubset = *((externalSubsetSAXFunc *) value);
Packit Service a31ea6
    } else {
Packit Service a31ea6
        return (-1);
Packit Service a31ea6
    }
Packit Service a31ea6
    return (0);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlDecodeEntities:
Packit Service a31ea6
 * @ctxt:  the parser context
Packit Service a31ea6
 * @len:  the len to decode (in bytes !), -1 for no size limit
Packit Service a31ea6
 * @what:  combination of XML_SUBSTITUTE_REF and XML_SUBSTITUTE_PEREF
Packit Service a31ea6
 * @end:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 * @end2:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 * @end3:  an end marker xmlChar, 0 if none
Packit Service a31ea6
 *
Packit Service a31ea6
 * This function is deprecated, we now always process entities content
Packit Service a31ea6
 * through xmlStringDecodeEntities
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: remove it in next major release.
Packit Service a31ea6
 *
Packit Service a31ea6
 * [67] Reference ::= EntityRef | CharRef
Packit Service a31ea6
 *
Packit Service a31ea6
 * [69] PEReference ::= '%' Name ';'
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns A newly allocated string with the substitution done. The caller
Packit Service a31ea6
 *      must deallocate it !
Packit Service a31ea6
 */
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlDecodeEntities(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
Packit Service a31ea6
                  int len ATTRIBUTE_UNUSED, int what ATTRIBUTE_UNUSED,
Packit Service a31ea6
                  xmlChar end ATTRIBUTE_UNUSED,
Packit Service a31ea6
                  xmlChar end2 ATTRIBUTE_UNUSED,
Packit Service a31ea6
                  xmlChar end3 ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlDecodeEntities() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlNamespaceParseNCName:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * parse an XML namespace name.
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: this seems not in use anymore, the namespace handling is done on
Packit Service a31ea6
 *       top of the SAX interfaces, i.e. not on raw input.
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 3] NCName ::= (Letter | '_') (NCNameChar)*
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' |
Packit Service a31ea6
 *                       CombiningChar | Extender
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the namespace name or NULL
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlNamespaceParseNCName(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlNamespaceParseNCName() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlNamespaceParseQName:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 * @prefix:  a xmlChar **
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: this seems not in use anymore, the namespace handling is done on
Packit Service a31ea6
 *       top of the SAX interfaces, i.e. not on raw input.
Packit Service a31ea6
 *
Packit Service a31ea6
 * parse an XML qualified name
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 5] QName ::= (Prefix ':')? LocalPart
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 6] Prefix ::= NCName
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 7] LocalPart ::= NCName
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the local part, and prefix is updated
Packit Service a31ea6
 *   to get the Prefix if any.
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlNamespaceParseQName(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
Packit Service a31ea6
                       xmlChar ** prefix ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlNamespaceParseQName() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlNamespaceParseNSDef:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * parse a namespace prefix declaration
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: this seems not in use anymore, the namespace handling is done on
Packit Service a31ea6
 *       top of the SAX interfaces, i.e. not on raw input.
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 1] NSDef ::= PrefixDef Eq SystemLiteral
Packit Service a31ea6
 *
Packit Service a31ea6
 * [NS 2] PrefixDef ::= 'xmlns' (':' NCName)?
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the namespace name
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlNamespaceParseNSDef(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlNamespaceParseNSDef() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlParseQuotedString:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * Parse and return a string between quotes or doublequotes
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: Deprecated, to  be removed at next drop of binary compatibility
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the string parser or NULL.
Packit Service a31ea6
 */
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlParseQuotedString(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlParseQuotedString() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlParseNamespace:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * xmlParseNamespace: parse specific PI '
Packit Service a31ea6
 *
Packit Service a31ea6
 * This is what the older xml-name Working Draft specified, a bunch of
Packit Service a31ea6
 * other stuff may still rely on it, so support is still here as
Packit Service a31ea6
 * if it was declared on the root of the Tree:-(
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: remove from library
Packit Service a31ea6
 *
Packit Service a31ea6
 * To be removed at next drop of binary compatibility
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
void
Packit Service a31ea6
xmlParseNamespace(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlParseNamespace() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlScanName:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * Trickery: parse an XML name but without consuming the input flow
Packit Service a31ea6
 * Needed for rollback cases. Used only when parsing entities references.
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: seems deprecated now, only used in the default part of
Packit Service a31ea6
 *       xmlParserHandleReference
Packit Service a31ea6
 *
Packit Service a31ea6
 * [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
Packit Service a31ea6
 *                  CombiningChar | Extender
Packit Service a31ea6
 *
Packit Service a31ea6
 * [5] Name ::= (Letter | '_' | ':') (NameChar)*
Packit Service a31ea6
 *
Packit Service a31ea6
 * [6] Names ::= Name (S Name)*
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the Name parsed or NULL
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
xmlChar *
Packit Service a31ea6
xmlScanName(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlScanName() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlParserHandleReference:
Packit Service a31ea6
 * @ctxt:  the parser context
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: Remove, now deprecated ... the test is done directly in the
Packit Service a31ea6
 *       content parsing
Packit Service a31ea6
 * routines.
Packit Service a31ea6
 *
Packit Service a31ea6
 * [67] Reference ::= EntityRef | CharRef
Packit Service a31ea6
 *
Packit Service a31ea6
 * [68] EntityRef ::= '&' Name ';'
Packit Service a31ea6
 *
Packit Service a31ea6
 * [ WFC: Entity Declared ]
Packit Service a31ea6
 * the Name given in the entity reference must match that in an entity
Packit Service a31ea6
 * declaration, except that well-formed documents need not declare any
Packit Service a31ea6
 * of the following entities: amp, lt, gt, apos, quot.
Packit Service a31ea6
 *
Packit Service a31ea6
 * [ WFC: Parsed Entity ]
Packit Service a31ea6
 * An entity reference must not contain the name of an unparsed entity
Packit Service a31ea6
 *
Packit Service a31ea6
 * [66] CharRef ::= '&#' [0-9]+ ';' |
Packit Service a31ea6
 *                  '&#x' [0-9a-fA-F]+ ';'
Packit Service a31ea6
 *
Packit Service a31ea6
 * A PEReference may have been detected in the current input stream
Packit Service a31ea6
 * the handling is done accordingly to
Packit Service a31ea6
 *      http://www.w3.org/TR/REC-xml#entproc
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
xmlParserHandleReference(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlParserHandleReference() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
Packit Service a31ea6
    return;
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlHandleEntity:
Packit Service a31ea6
 * @ctxt:  an XML parser context
Packit Service a31ea6
 * @entity:  an XML entity pointer.
Packit Service a31ea6
 *
Packit Service a31ea6
 * Default handling of defined entities, when should we define a new input
Packit Service a31ea6
 * stream ? When do we just handle that as a set of chars ?
Packit Service a31ea6
 *
Packit Service a31ea6
 * OBSOLETE: to be removed at some point.
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
void
Packit Service a31ea6
xmlHandleEntity(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
Packit Service a31ea6
                xmlEntityPtr entity ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlHandleEntity() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlNewGlobalNs:
Packit Service a31ea6
 * @doc:  the document carrying the namespace
Packit Service a31ea6
 * @href:  the URI associated
Packit Service a31ea6
 * @prefix:  the prefix for the namespace
Packit Service a31ea6
 *
Packit Service a31ea6
 * Creation of a Namespace, the old way using PI and without scoping
Packit Service a31ea6
 *   DEPRECATED !!!
Packit Service a31ea6
 * Returns NULL this functionality had been removed
Packit Service a31ea6
 */
Packit Service a31ea6
xmlNsPtr
Packit Service a31ea6
xmlNewGlobalNs(xmlDocPtr doc ATTRIBUTE_UNUSED,
Packit Service a31ea6
               const xmlChar * href ATTRIBUTE_UNUSED,
Packit Service a31ea6
               const xmlChar * prefix ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlNewGlobalNs() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlUpgradeOldNs:
Packit Service a31ea6
 * @doc:  a document pointer
Packit Service a31ea6
 *
Packit Service a31ea6
 * Upgrade old style Namespaces (PI) and move them to the root of the document.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
xmlUpgradeOldNs(xmlDocPtr doc ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int deprecated = 0;
Packit Service a31ea6
Packit Service a31ea6
    if (!deprecated) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "xmlUpgradeOldNs() deprecated function reached\n");
Packit Service a31ea6
        deprecated = 1;
Packit Service a31ea6
    }
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * xmlEncodeEntities:
Packit Service a31ea6
 * @doc:  the document containing the string
Packit Service a31ea6
 * @input:  A string to convert to XML.
Packit Service a31ea6
 *
Packit Service a31ea6
 * TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary
Packit Service a31ea6
 *       compatibility
Packit Service a31ea6
 *
Packit Service a31ea6
 * People must migrate their code to xmlEncodeEntitiesReentrant !
Packit Service a31ea6
 * This routine will issue a warning when encountered.
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns NULL
Packit Service a31ea6
 */
Packit Service a31ea6
const xmlChar *
Packit Service a31ea6
xmlEncodeEntities(xmlDocPtr doc ATTRIBUTE_UNUSED,
Packit Service a31ea6
                  const xmlChar * input ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    static int warning = 1;
Packit Service a31ea6
Packit Service a31ea6
    if (warning) {
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "Deprecated API xmlEncodeEntities() used\n");
Packit Service a31ea6
        xmlGenericError(xmlGenericErrorContext,
Packit Service a31ea6
                        "   change code to use xmlEncodeEntitiesReentrant()\n");
Packit Service a31ea6
        warning = 0;
Packit Service a31ea6
    }
Packit Service a31ea6
    return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/************************************************************************
Packit Service a31ea6
 *									*
Packit Service a31ea6
 *		Old set of SAXv1 functions				*
Packit Service a31ea6
 *									*
Packit Service a31ea6
 ************************************************************************/
Packit Service a31ea6
static int deprecated_v1_msg = 0;
Packit Service a31ea6
Packit Service a31ea6
#define DEPRECATED(n)						\
Packit Service a31ea6
    if (deprecated_v1_msg == 0)					\
Packit Service a31ea6
	xmlGenericError(xmlGenericErrorContext,			\
Packit Service a31ea6
	  "Use of deprecated SAXv1 function %s\n", n);		\
Packit Service a31ea6
    deprecated_v1_msg++;
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getPublicId:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetPublicId()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns a xmlChar *
Packit Service a31ea6
 */
Packit Service a31ea6
const xmlChar *
Packit Service a31ea6
getPublicId(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getPublicId")
Packit Service a31ea6
        return (xmlSAX2GetPublicId(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getSystemId:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Provides the system ID, basically URL or filename e.g.
Packit Service a31ea6
 * http://www.sgmlsource.com/dtds/memo.dtd
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetSystemId()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns a xmlChar *
Packit Service a31ea6
 */
Packit Service a31ea6
const xmlChar *
Packit Service a31ea6
getSystemId(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getSystemId")
Packit Service a31ea6
        return (xmlSAX2GetSystemId(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getLineNumber:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Provide the line number of the current parsing point.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetLineNumber()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns an int
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
getLineNumber(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getLineNumber")
Packit Service a31ea6
        return (xmlSAX2GetLineNumber(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getColumnNumber:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Provide the column number of the current parsing point.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetColumnNumber()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns an int
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
getColumnNumber(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getColumnNumber")
Packit Service a31ea6
        return (xmlSAX2GetColumnNumber(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * isStandalone:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Is this document tagged standalone ?
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2IsStandalone()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns 1 if true
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
isStandalone(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("isStandalone")
Packit Service a31ea6
        return (xmlSAX2IsStandalone(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * hasInternalSubset:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Does this document has an internal subset
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2HasInternalSubset()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns 1 if true
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
hasInternalSubset(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("hasInternalSubset")
Packit Service a31ea6
        return (xmlSAX2HasInternalSubset(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * hasExternalSubset:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Does this document has an external subset
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2HasExternalSubset()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns 1 if true
Packit Service a31ea6
 */
Packit Service a31ea6
int
Packit Service a31ea6
hasExternalSubset(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("hasExternalSubset")
Packit Service a31ea6
        return (xmlSAX2HasExternalSubset(ctx));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * internalSubset:
Packit Service a31ea6
 * @ctx:  the user data (XML parser context)
Packit Service a31ea6
 * @name:  the root element name
Packit Service a31ea6
 * @ExternalID:  the external ID
Packit Service a31ea6
 * @SystemID:  the SYSTEM ID (e.g. filename or URL)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Callback on internal subset declaration.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2InternalSubset()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
internalSubset(void *ctx, const xmlChar * name,
Packit Service a31ea6
               const xmlChar * ExternalID, const xmlChar * SystemID)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("internalSubset")
Packit Service a31ea6
        xmlSAX2InternalSubset(ctx, name, ExternalID, SystemID);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * externalSubset:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  the root element name
Packit Service a31ea6
 * @ExternalID:  the external ID
Packit Service a31ea6
 * @SystemID:  the SYSTEM ID (e.g. filename or URL)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Callback on external subset declaration.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2ExternalSubset()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
externalSubset(void *ctx, const xmlChar * name,
Packit Service a31ea6
               const xmlChar * ExternalID, const xmlChar * SystemID)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("externalSubset")
Packit Service a31ea6
        xmlSAX2ExternalSubset(ctx, name, ExternalID, SystemID);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * resolveEntity:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @publicId: The public ID of the entity
Packit Service a31ea6
 * @systemId: The system ID of the entity
Packit Service a31ea6
 *
Packit Service a31ea6
 * The entity loader, to control the loading of external entities,
Packit Service a31ea6
 * the application can either:
Packit Service a31ea6
 *    - override this resolveEntity() callback in the SAX block
Packit Service a31ea6
 *    - or better use the xmlSetExternalEntityLoader() function to
Packit Service a31ea6
 *      set up it's own entity resolution routine
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2ResolveEntity()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
Packit Service a31ea6
 */
Packit Service a31ea6
xmlParserInputPtr
Packit Service a31ea6
resolveEntity(void *ctx, const xmlChar * publicId,
Packit Service a31ea6
              const xmlChar * systemId)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("resolveEntity")
Packit Service a31ea6
        return (xmlSAX2ResolveEntity(ctx, publicId, systemId));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getEntity:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name: The entity name
Packit Service a31ea6
 *
Packit Service a31ea6
 * Get an entity by name
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetEntity()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the xmlEntityPtr if found.
Packit Service a31ea6
 */
Packit Service a31ea6
xmlEntityPtr
Packit Service a31ea6
getEntity(void *ctx, const xmlChar * name)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getEntity")
Packit Service a31ea6
        return (xmlSAX2GetEntity(ctx, name));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getParameterEntity:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name: The entity name
Packit Service a31ea6
 *
Packit Service a31ea6
 * Get a parameter entity by name
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2GetParameterEntity()
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the xmlEntityPtr if found.
Packit Service a31ea6
 */
Packit Service a31ea6
xmlEntityPtr
Packit Service a31ea6
getParameterEntity(void *ctx, const xmlChar * name)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getParameterEntity")
Packit Service a31ea6
        return (xmlSAX2GetParameterEntity(ctx, name));
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * entityDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  the entity name
Packit Service a31ea6
 * @type:  the entity type
Packit Service a31ea6
 * @publicId: The public ID of the entity
Packit Service a31ea6
 * @systemId: The system ID of the entity
Packit Service a31ea6
 * @content: the entity value (without processing).
Packit Service a31ea6
 *
Packit Service a31ea6
 * An entity definition has been parsed
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2EntityDecl()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
entityDecl(void *ctx, const xmlChar * name, int type,
Packit Service a31ea6
           const xmlChar * publicId, const xmlChar * systemId,
Packit Service a31ea6
           xmlChar * content)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("entityDecl")
Packit Service a31ea6
        xmlSAX2EntityDecl(ctx, name, type, publicId, systemId, content);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * attributeDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @elem:  the name of the element
Packit Service a31ea6
 * @fullname:  the attribute name
Packit Service a31ea6
 * @type:  the attribute type
Packit Service a31ea6
 * @def:  the type of default value
Packit Service a31ea6
 * @defaultValue: the attribute default value
Packit Service a31ea6
 * @tree:  the tree of enumerated value set
Packit Service a31ea6
 *
Packit Service a31ea6
 * An attribute definition has been parsed
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2AttributeDecl()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
attributeDecl(void *ctx, const xmlChar * elem, const xmlChar * fullname,
Packit Service a31ea6
              int type, int def, const xmlChar * defaultValue,
Packit Service a31ea6
              xmlEnumerationPtr tree)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("attributeDecl")
Packit Service a31ea6
        xmlSAX2AttributeDecl(ctx, elem, fullname, type, def, defaultValue,
Packit Service a31ea6
                             tree);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * elementDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  the element name
Packit Service a31ea6
 * @type:  the element type
Packit Service a31ea6
 * @content: the element value tree
Packit Service a31ea6
 *
Packit Service a31ea6
 * An element definition has been parsed
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2ElementDecl()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
elementDecl(void *ctx, const xmlChar * name, int type,
Packit Service a31ea6
            xmlElementContentPtr content)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("elementDecl")
Packit Service a31ea6
        xmlSAX2ElementDecl(ctx, name, type, content);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * notationDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name: The name of the notation
Packit Service a31ea6
 * @publicId: The public ID of the entity
Packit Service a31ea6
 * @systemId: The system ID of the entity
Packit Service a31ea6
 *
Packit Service a31ea6
 * What to do when a notation declaration has been parsed.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2NotationDecl()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
notationDecl(void *ctx, const xmlChar * name,
Packit Service a31ea6
             const xmlChar * publicId, const xmlChar * systemId)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("notationDecl")
Packit Service a31ea6
        xmlSAX2NotationDecl(ctx, name, publicId, systemId);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * unparsedEntityDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name: The name of the entity
Packit Service a31ea6
 * @publicId: The public ID of the entity
Packit Service a31ea6
 * @systemId: The system ID of the entity
Packit Service a31ea6
 * @notationName: the name of the notation
Packit Service a31ea6
 *
Packit Service a31ea6
 * What to do when an unparsed entity declaration is parsed
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2UnparsedEntityDecl()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
unparsedEntityDecl(void *ctx, const xmlChar * name,
Packit Service a31ea6
                   const xmlChar * publicId, const xmlChar * systemId,
Packit Service a31ea6
                   const xmlChar * notationName)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("unparsedEntityDecl")
Packit Service a31ea6
        xmlSAX2UnparsedEntityDecl(ctx, name, publicId, systemId,
Packit Service a31ea6
                                  notationName);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * setDocumentLocator:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @loc: A SAX Locator
Packit Service a31ea6
 *
Packit Service a31ea6
 * Receive the document locator at startup, actually xmlDefaultSAXLocator
Packit Service a31ea6
 * Everything is available on the context, so this is useless in our case.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
setDocumentLocator(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
                   xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("setDocumentLocator")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * startDocument:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when the document start being processed.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2StartDocument()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
startDocument(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
   /* don't be too painful for glade users */
Packit Service a31ea6
   /*  DEPRECATED("startDocument") */
Packit Service a31ea6
        xmlSAX2StartDocument(ctx);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * endDocument:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when the document end has been detected.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2EndDocument()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
endDocument(void *ctx)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("endDocument")
Packit Service a31ea6
        xmlSAX2EndDocument(ctx);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * attribute:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @fullname:  The attribute name, including namespace prefix
Packit Service a31ea6
 * @value:  The attribute value
Packit Service a31ea6
 *
Packit Service a31ea6
 * Handle an attribute that has been read by the parser.
Packit Service a31ea6
 * The default handling is to convert the attribute into an
Packit Service a31ea6
 * DOM subtree and past it in a new xmlAttr element added to
Packit Service a31ea6
 * the element.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2Attribute()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
attribute(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
          const xmlChar * fullname ATTRIBUTE_UNUSED,
Packit Service a31ea6
          const xmlChar * value ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("attribute")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * startElement:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @fullname:  The element name, including namespace prefix
Packit Service a31ea6
 * @atts:  An array of name/value attributes pairs, NULL terminated
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when an opening tag has been processed.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2StartElement()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
startElement(void *ctx, const xmlChar * fullname, const xmlChar ** atts)
Packit Service a31ea6
{
Packit Service a31ea6
    xmlSAX2StartElement(ctx, fullname, atts);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * endElement:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  The element name
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when the end of an element has been detected.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2EndElement()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
endElement(void *ctx, const xmlChar * name ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("endElement")
Packit Service a31ea6
    xmlSAX2EndElement(ctx, name);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * reference:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  The entity name
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when an entity reference is detected.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2Reference()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
reference(void *ctx, const xmlChar * name)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("reference")
Packit Service a31ea6
        xmlSAX2Reference(ctx, name);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * characters:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @ch:  a xmlChar string
Packit Service a31ea6
 * @len: the number of xmlChar
Packit Service a31ea6
 *
Packit Service a31ea6
 * receiving some chars from the parser.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2Characters()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
characters(void *ctx, const xmlChar * ch, int len)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("characters")
Packit Service a31ea6
        xmlSAX2Characters(ctx, ch, len);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * ignorableWhitespace:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @ch:  a xmlChar string
Packit Service a31ea6
 * @len: the number of xmlChar
Packit Service a31ea6
 *
Packit Service a31ea6
 * receiving some ignorable whitespaces from the parser.
Packit Service a31ea6
 * UNUSED: by default the DOM building will use characters
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2IgnorableWhitespace()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
ignorableWhitespace(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
                    const xmlChar * ch ATTRIBUTE_UNUSED,
Packit Service a31ea6
                    int len ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("ignorableWhitespace")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * processingInstruction:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @target:  the target name
Packit Service a31ea6
 * @data: the PI data's
Packit Service a31ea6
 *
Packit Service a31ea6
 * A processing instruction has been parsed.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2ProcessingInstruction()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
processingInstruction(void *ctx, const xmlChar * target,
Packit Service a31ea6
                      const xmlChar * data)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("processingInstruction")
Packit Service a31ea6
        xmlSAX2ProcessingInstruction(ctx, target, data);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * globalNamespace:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @href:  the namespace associated URN
Packit Service a31ea6
 * @prefix: the namespace prefix
Packit Service a31ea6
 *
Packit Service a31ea6
 * An old global namespace has been parsed.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
globalNamespace(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
                const xmlChar * href ATTRIBUTE_UNUSED,
Packit Service a31ea6
                const xmlChar * prefix ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("globalNamespace")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * setNamespace:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @name:  the namespace prefix
Packit Service a31ea6
 *
Packit Service a31ea6
 * Set the current element namespace.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
void
Packit Service a31ea6
setNamespace(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
             const xmlChar * name ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("setNamespace")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * getNamespace:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 *
Packit Service a31ea6
 * Get the current element namespace.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns the xmlNsPtr or NULL if none
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
xmlNsPtr
Packit Service a31ea6
getNamespace(void *ctx ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("getNamespace")
Packit Service a31ea6
        return (NULL);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * checkNamespace:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @namespace: the namespace to check against
Packit Service a31ea6
 *
Packit Service a31ea6
 * Check that the current element namespace is the same as the
Packit Service a31ea6
 * one read upon parsing.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 *
Packit Service a31ea6
 * Returns 1 if true 0 otherwise
Packit Service a31ea6
 */
Packit Service a31ea6
Packit Service a31ea6
int
Packit Service a31ea6
checkNamespace(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
               xmlChar * namespace ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("checkNamespace")
Packit Service a31ea6
        return (0);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * namespaceDecl:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @href:  the namespace associated URN
Packit Service a31ea6
 * @prefix: the namespace prefix
Packit Service a31ea6
 *
Packit Service a31ea6
 * A namespace has been parsed.
Packit Service a31ea6
 * DEPRECATED
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
namespaceDecl(void *ctx ATTRIBUTE_UNUSED,
Packit Service a31ea6
              const xmlChar * href ATTRIBUTE_UNUSED,
Packit Service a31ea6
              const xmlChar * prefix ATTRIBUTE_UNUSED)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("namespaceDecl")
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * comment:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @value:  the comment content
Packit Service a31ea6
 *
Packit Service a31ea6
 * A comment has been parsed.
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2Comment()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
comment(void *ctx, const xmlChar * value)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("comment")
Packit Service a31ea6
        xmlSAX2Comment(ctx, value);
Packit Service a31ea6
}
Packit Service a31ea6
Packit Service a31ea6
/**
Packit Service a31ea6
 * cdataBlock:
Packit Service a31ea6
 * @ctx: the user data (XML parser context)
Packit Service a31ea6
 * @value:  The pcdata content
Packit Service a31ea6
 * @len:  the block length
Packit Service a31ea6
 *
Packit Service a31ea6
 * called when a pcdata block has been parsed
Packit Service a31ea6
 * DEPRECATED: use xmlSAX2CDataBlock()
Packit Service a31ea6
 */
Packit Service a31ea6
void
Packit Service a31ea6
cdataBlock(void *ctx, const xmlChar * value, int len)
Packit Service a31ea6
{
Packit Service a31ea6
    DEPRECATED("cdataBlock")
Packit Service a31ea6
        xmlSAX2CDataBlock(ctx, value, len);
Packit Service a31ea6
}
Packit Service a31ea6
#define bottom_legacy
Packit Service a31ea6
#include "elfgcchack.h"
Packit Service a31ea6
#endif /* LIBXML_LEGACY_ENABLED */
Packit Service a31ea6