Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
SAX2.h174 linesDownload Raw Back to libxml
1/*2 * Summary: SAX2 parser interface used to build the DOM tree3 * Description: those are the default SAX2 interfaces used by4 *              the library when building DOM tree.5 *6 * Copy: See Copyright for the status of this software.7 *8 * Author: Daniel Veillard9 */10 11 12#ifndef __XML_SAX2_H__13#define __XML_SAX2_H__14 15#include <stdio.h>16#include <stdlib.h>17#include <libxml/xmlversion.h>18#include <libxml/parser.h>19 20#ifdef __cplusplus21extern "C" {22#endif23XMLPUBFUN const xmlChar *24		xmlSAX2GetPublicId		(void *ctx);25XMLPUBFUN const xmlChar *26		xmlSAX2GetSystemId		(void *ctx);27XMLPUBFUN void28		xmlSAX2SetDocumentLocator	(void *ctx,29						 xmlSAXLocatorPtr loc);30 31XMLPUBFUN int32		xmlSAX2GetLineNumber		(void *ctx);33XMLPUBFUN int34		xmlSAX2GetColumnNumber		(void *ctx);35 36XMLPUBFUN int37		xmlSAX2IsStandalone		(void *ctx);38XMLPUBFUN int39		xmlSAX2HasInternalSubset	(void *ctx);40XMLPUBFUN int41		xmlSAX2HasExternalSubset	(void *ctx);42 43XMLPUBFUN void44		xmlSAX2InternalSubset		(void *ctx,45						 const xmlChar *name,46						 const xmlChar *ExternalID,47						 const xmlChar *SystemID);48XMLPUBFUN void49		xmlSAX2ExternalSubset		(void *ctx,50						 const xmlChar *name,51						 const xmlChar *ExternalID,52						 const xmlChar *SystemID);53XMLPUBFUN xmlEntityPtr54		xmlSAX2GetEntity		(void *ctx,55						 const xmlChar *name);56XMLPUBFUN xmlEntityPtr57		xmlSAX2GetParameterEntity	(void *ctx,58						 const xmlChar *name);59XMLPUBFUN xmlParserInputPtr60		xmlSAX2ResolveEntity		(void *ctx,61						 const xmlChar *publicId,62						 const xmlChar *systemId);63 64XMLPUBFUN void65		xmlSAX2EntityDecl		(void *ctx,66						 const xmlChar *name,67						 int type,68						 const xmlChar *publicId,69						 const xmlChar *systemId,70						 xmlChar *content);71XMLPUBFUN void72		xmlSAX2AttributeDecl		(void *ctx,73						 const xmlChar *elem,74						 const xmlChar *fullname,75						 int type,76						 int def,77						 const xmlChar *defaultValue,78						 xmlEnumerationPtr tree);79XMLPUBFUN void80		xmlSAX2ElementDecl		(void *ctx,81						 const xmlChar *name,82						 int type,83						 xmlElementContentPtr content);84XMLPUBFUN void85		xmlSAX2NotationDecl		(void *ctx,86						 const xmlChar *name,87						 const xmlChar *publicId,88						 const xmlChar *systemId);89XMLPUBFUN void90		xmlSAX2UnparsedEntityDecl	(void *ctx,91						 const xmlChar *name,92						 const xmlChar *publicId,93						 const xmlChar *systemId,94						 const xmlChar *notationName);95 96XMLPUBFUN void97		xmlSAX2StartDocument		(void *ctx);98XMLPUBFUN void99		xmlSAX2EndDocument		(void *ctx);100#if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \101    defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED)102XMLPUBFUN void103		xmlSAX2StartElement		(void *ctx,104						 const xmlChar *fullname,105						 const xmlChar **atts);106XMLPUBFUN void107		xmlSAX2EndElement		(void *ctx,108						 const xmlChar *name);109#endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */110XMLPUBFUN void111		xmlSAX2StartElementNs		(void *ctx,112						 const xmlChar *localname,113						 const xmlChar *prefix,114						 const xmlChar *URI,115						 int nb_namespaces,116						 const xmlChar **namespaces,117						 int nb_attributes,118						 int nb_defaulted,119						 const xmlChar **attributes);120XMLPUBFUN void121		xmlSAX2EndElementNs		(void *ctx,122						 const xmlChar *localname,123						 const xmlChar *prefix,124						 const xmlChar *URI);125XMLPUBFUN void126		xmlSAX2Reference		(void *ctx,127						 const xmlChar *name);128XMLPUBFUN void129		xmlSAX2Characters		(void *ctx,130						 const xmlChar *ch,131						 int len);132XMLPUBFUN void133		xmlSAX2IgnorableWhitespace	(void *ctx,134						 const xmlChar *ch,135						 int len);136XMLPUBFUN void137		xmlSAX2ProcessingInstruction	(void *ctx,138						 const xmlChar *target,139						 const xmlChar *data);140XMLPUBFUN void141		xmlSAX2Comment			(void *ctx,142						 const xmlChar *value);143XMLPUBFUN void144		xmlSAX2CDataBlock		(void *ctx,145						 const xmlChar *value,146						 int len);147 148#ifdef LIBXML_SAX1_ENABLED149XML_DEPRECATED150XMLPUBFUN int151		xmlSAXDefaultVersion		(int version);152#endif /* LIBXML_SAX1_ENABLED */153 154XMLPUBFUN int155		xmlSAXVersion			(xmlSAXHandler *hdlr,156						 int version);157XMLPUBFUN void158		xmlSAX2InitDefaultSAXHandler    (xmlSAXHandler *hdlr,159						 int warning);160#ifdef LIBXML_HTML_ENABLED161XMLPUBFUN void162		xmlSAX2InitHtmlDefaultSAXHandler(xmlSAXHandler *hdlr);163XML_DEPRECATED164XMLPUBFUN void165		htmlDefaultSAXHandlerInit	(void);166#endif167XML_DEPRECATED168XMLPUBFUN void169		xmlDefaultSAXHandlerInit	(void);170#ifdef __cplusplus171}172#endif173#endif /* __XML_SAX2_H__ */174 
codekingpro/portable-devtools · Team Ai