Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libdigidoc/libxml2/include/libxml/SAX2.h
#include <stdio.h>
#include <stdlib.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
#include <libxml/xlink.h>

Ir al código fuente de este archivo.

Funciones

XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetPublicId (void *ctx)
XMLPUBFUN const xmlChar *XMLCALL xmlSAX2GetSystemId (void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator (void *ctx, xmlSAXLocatorPtr loc)
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber (void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber (void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone (void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset (void *ctx)
XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset (void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2InternalSubset (void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset (void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity (void *ctx, const xmlChar *name)
XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity (void *ctx, const xmlChar *name)
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity (void *ctx, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl (void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl (void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
XMLPUBFUN void XMLCALL xmlSAX2ElementDecl (void *ctx, const xmlChar *name, int type, xmlElementContentPtr content)
XMLPUBFUN void XMLCALL xmlSAX2NotationDecl (void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl (void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
XMLPUBFUN void XMLCALL xmlSAX2StartDocument (void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2EndDocument (void *ctx)
XMLPUBFUN void XMLCALL xmlSAX2StartElementNs (void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
XMLPUBFUN void XMLCALL xmlSAX2EndElementNs (void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI)
XMLPUBFUN void XMLCALL xmlSAX2Reference (void *ctx, const xmlChar *name)
XMLPUBFUN void XMLCALL xmlSAX2Characters (void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace (void *ctx, const xmlChar *ch, int len)
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction (void *ctx, const xmlChar *target, const xmlChar *data)
XMLPUBFUN void XMLCALL xmlSAX2Comment (void *ctx, const xmlChar *value)
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock (void *ctx, const xmlChar *value, int len)
XMLPUBFUN int XMLCALL xmlSAXVersion (xmlSAXHandler *hdlr, int version)
XMLPUBFUN void XMLCALL xmlSAX2InitDefaultSAXHandler (xmlSAXHandler *hdlr, int warning)
XMLPUBFUN void XMLCALL xmlDefaultSAXHandlerInit (void)

Documentación de las funciones

XMLPUBFUN void XMLCALL xmlDefaultSAXHandlerInit ( void  )

xmlDefaultSAXHandlerInit:

Initialize the default SAX2 handler

XMLPUBFUN void XMLCALL xmlSAX2AttributeDecl ( void *  ctx,
const xmlChar elem,
const xmlChar fullname,
int  type,
int  def,
const xmlChar defaultValue,
xmlEnumerationPtr  tree 
)
XMLPUBFUN void XMLCALL xmlSAX2CDataBlock ( void *  ctx,
const xmlChar value,
int  len 
)

xmlSAX2CDataBlock: : the user data (XML parser context) : The pcdata content : the block length

called when a pcdata block has been parsed

XMLPUBFUN void XMLCALL xmlSAX2Characters ( void *  ctx,
const xmlChar ch,
int  len 
)

xmlSAX2Characters: : the user data (XML parser context) : a xmlChar string : the number of xmlChar

receiving some chars from the parser.

XMLPUBFUN void XMLCALL xmlSAX2Comment ( void *  ctx,
const xmlChar value 
)

xmlSAX2Comment: : the user data (XML parser context) : the xmlSAX2Comment content

A xmlSAX2Comment has been parsed.

XMLPUBFUN void XMLCALL xmlSAX2ElementDecl ( void *  ctx,
const xmlChar name,
int  type,
xmlElementContentPtr  content 
)
XMLPUBFUN void XMLCALL xmlSAX2EndDocument ( void *  ctx)

xmlSAX2EndDocument: : the user data (XML parser context)

called when the document end has been detected.

XMLPUBFUN void XMLCALL xmlSAX2EndElementNs ( void *  ctx,
const xmlChar localname,
const xmlChar prefix,
const xmlChar URI 
)
XMLPUBFUN void XMLCALL xmlSAX2EntityDecl ( void *  ctx,
const xmlChar name,
int  type,
const xmlChar publicId,
const xmlChar systemId,
xmlChar content 
)
XMLPUBFUN void XMLCALL xmlSAX2ExternalSubset ( void *  ctx,
const xmlChar name,
const xmlChar ExternalID,
const xmlChar SystemID 
)
XMLPUBFUN int XMLCALL xmlSAX2GetColumnNumber ( void *  ctx)

xmlSAX2GetColumnNumber: : the user data (XML parser context)

Provide the column number of the current parsing point.

Returns an int

XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetEntity ( void *  ctx,
const xmlChar name 
)
XMLPUBFUN int XMLCALL xmlSAX2GetLineNumber ( void *  ctx)

xmlSAX2GetLineNumber: : the user data (XML parser context)

Provide the line number of the current parsing point.

Returns an int

XMLPUBFUN xmlEntityPtr XMLCALL xmlSAX2GetParameterEntity ( void *  ctx,
const xmlChar name 
)
XMLPUBFUN const xmlChar* XMLCALL xmlSAX2GetPublicId ( void *  ctx)
XMLPUBFUN const xmlChar* XMLCALL xmlSAX2GetSystemId ( void *  ctx)

xmlSAX2GetSystemId: : the user data (XML parser context)

Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd

Returns a xmlChar *

XMLPUBFUN int XMLCALL xmlSAX2HasExternalSubset ( void *  ctx)

xmlSAX2HasExternalSubset: : the user data (XML parser context)

Does this document has an external subset

Returns 1 if true

XMLPUBFUN int XMLCALL xmlSAX2HasInternalSubset ( void *  ctx)

xmlSAX2HasInternalSubset: : the user data (XML parser context)

Does this document has an internal subset

Returns 1 if true

XMLPUBFUN void XMLCALL xmlSAX2IgnorableWhitespace ( void *  ctx,
const xmlChar ch,
int  len 
)
XMLPUBFUN void XMLCALL xmlSAX2InitDefaultSAXHandler ( xmlSAXHandler hdlr,
int  warning 
)

xmlSAX2InitDefaultSAXHandler: : the SAX handler

Atención:
: flag if non-zero sets the handler warning procedure

Initialize the default XML SAX2 handler

XMLPUBFUN void XMLCALL xmlSAX2InternalSubset ( void *  ctx,
const xmlChar name,
const xmlChar ExternalID,
const xmlChar SystemID 
)
XMLPUBFUN int XMLCALL xmlSAX2IsStandalone ( void *  ctx)

xmlSAX2IsStandalone: : the user data (XML parser context)

Is this document tagged standalone ?

Returns 1 if true

XMLPUBFUN void XMLCALL xmlSAX2NotationDecl ( void *  ctx,
const xmlChar name,
const xmlChar publicId,
const xmlChar systemId 
)
XMLPUBFUN void XMLCALL xmlSAX2ProcessingInstruction ( void *  ctx,
const xmlChar target,
const xmlChar data 
)

xmlSAX2ProcessingInstruction: : the user data (XML parser context) : the target name : the PI data's

A processing instruction has been parsed.

XMLPUBFUN void XMLCALL xmlSAX2Reference ( void *  ctx,
const xmlChar name 
)
XMLPUBFUN xmlParserInputPtr XMLCALL xmlSAX2ResolveEntity ( void *  ctx,
const xmlChar publicId,
const xmlChar systemId 
)

xmlSAX2ResolveEntity: : the user data (XML parser context) : The public ID of the entity : The system ID of the entity

The entity loader, to control the loading of external entities, the application can either:

Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.

XMLPUBFUN void XMLCALL xmlSAX2SetDocumentLocator ( void *  ctx,
xmlSAXLocatorPtr  loc 
)
XMLPUBFUN void XMLCALL xmlSAX2StartDocument ( void *  ctx)

xmlSAX2StartDocument: : the user data (XML parser context)

called when the document start being processed.

XMLPUBFUN void XMLCALL xmlSAX2StartElementNs ( void *  ctx,
const xmlChar localname,
const xmlChar prefix,
const xmlChar URI,
int  nb_namespaces,
const xmlChar **  namespaces,
int  nb_attributes,
int  nb_defaulted,
const xmlChar **  attributes 
)

xmlSAX2StartElementNs: : the user data (XML parser context) : the local name of the element : the element namespace prefix if available : the element namespace name if available : number of namespace definitions on that node : pointer to the array of prefix/URI pairs namespace definitions : the number of attributes on that node : the number of defaulted attributes. : pointer to the array of (localname/prefix/URI/value/end) attribute values.

SAX2 callback when an element start has been detected by the parser. It provides the namespace informations for the element, as well as the new namespace declarations on the element.

XMLPUBFUN void XMLCALL xmlSAX2UnparsedEntityDecl ( void *  ctx,
const xmlChar name,
const xmlChar publicId,
const xmlChar systemId,
const xmlChar notationName 
)
XMLPUBFUN int XMLCALL xmlSAXVersion ( xmlSAXHandler hdlr,
int  version 
)

xmlSAXVersion: : the SAX handler

Versión:
: the version, 1 or 2

Initialize the default XML SAX handler according to the version

Returns 0 in case of success and -1 in case of error.

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'