libxml2_parser.h File Reference

Typedef xmlParserInputDeallocate

typedef void(* xmlParserInputDeallocate

xmlParserInput:

An xmlParserInput is an input flow for the XML processor. Each entity parsed is associated an xmlParserInput (except the few predefined ones). This is the case both for internal entities
  • in which case the flow is already completely in memory - or external entities - in which case we use the buf structure for progressive reading and I18N conversions to the internal UTF-8 format. xmlParserInputDeallocate: Callback for freeing some parser input allocations.

Typedef xmlParserNodeInfo

typedef struct _xmlParserNodeInfo xmlParserNodeInfo

xmlParserNodeInfo:

The parser can be asked to collect Node informations, i.e. at what place in the file they were detected. NOTE: This is off by default and not very well tested.

Typedef xmlParserNodeInfoPtr

typedef xmlParserNodeInfo * xmlParserNodeInfoPtr

Typedef xmlParserNodeInfoSeq

typedef struct _xmlParserNodeInfoSeq xmlParserNodeInfoSeq

Typedef xmlParserNodeInfoSeqPtr

typedef xmlParserNodeInfoSeq * xmlParserNodeInfoSeqPtr

Typedef resolveEntitySAXFunc

typedef xmlParserInputPtr (* resolveEntitySAXFunc

xmlSAXHandler:

A SAX handler is bunch of callbacks called by the parser when processing of the input generate data or structure informations. resolveEntitySAXFunc: Callback: The entity loader, to control the loading of external entities, the application can either:

Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.

Typedef internalSubsetSAXFunc

typedef void(* internalSubsetSAXFunc

internalSubsetSAXFunc: Callback on internal subset declaration.

Typedef externalSubsetSAXFunc

typedef void(* externalSubsetSAXFunc

externalSubsetSAXFunc: Callback on external subset declaration.

Typedef getEntitySAXFunc

typedef xmlEntityPtr (* getEntitySAXFunc

getEntitySAXFunc: Get an entity by name.

Returns the xmlEntityPtr if found.

Typedef getParameterEntitySAXFunc

typedef xmlEntityPtr (* getParameterEntitySAXFunc

getParameterEntitySAXFunc: Get a parameter entity by name.

Returns the xmlEntityPtr if found.

Typedef entityDeclSAXFunc

typedef void(* entityDeclSAXFunc

entityDeclSAXFunc: An entity definition has been parsed.

Typedef notationDeclSAXFunc

typedef void(* notationDeclSAXFunc

notationDeclSAXFunc: What to do when a notation declaration has been parsed.

Typedef attributeDeclSAXFunc

typedef void(* attributeDeclSAXFunc

attributeDeclSAXFunc: An attribute definition has been parsed.

Typedef elementDeclSAXFunc

typedef void(* elementDeclSAXFunc

elementDeclSAXFunc: An element definition has been parsed.

Typedef unparsedEntityDeclSAXFunc

typedef void(* unparsedEntityDeclSAXFunc

unparsedEntityDeclSAXFunc: What to do when an unparsed entity declaration is parsed.

Typedef setDocumentLocatorSAXFunc

typedef void(* setDocumentLocatorSAXFunc

setDocumentLocatorSAXFunc: Receive the document locator at startup, actually xmlDefaultSAXLocator. Everything is available on the context, so this is useless in our case.

Typedef startDocumentSAXFunc

typedef void(* startDocumentSAXFunc

startDocumentSAXFunc: Called when the document start being processed.

Typedef endDocumentSAXFunc

typedef void(* endDocumentSAXFunc

endDocumentSAXFunc: Called when the document end has been detected.

Typedef startElementSAXFunc

typedef void(* startElementSAXFunc

startElementSAXFunc: Called when an opening tag has been processed.

Typedef endElementSAXFunc

typedef void(* endElementSAXFunc

endElementSAXFunc: Called when the end of an element has been detected.

Typedef attributeSAXFunc

typedef void(* attributeSAXFunc

attributeSAXFunc: Handle an attribute that has been read by the parser. The default handling is to convert the attribute into an DOM subtree and past it in a new xmlAttr element added to the element.

Typedef referenceSAXFunc

typedef void(* referenceSAXFunc

referenceSAXFunc: Called when an entity reference is detected.

Typedef charactersSAXFunc

typedef void(* charactersSAXFunc

charactersSAXFunc: Receiving some chars from the parser.

Typedef ignorableWhitespaceSAXFunc

typedef void(* ignorableWhitespaceSAXFunc

ignorableWhitespaceSAXFunc: Receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use characters.

Typedef processingInstructionSAXFunc

typedef void(* processingInstructionSAXFunc

processingInstructionSAXFunc: A processing instruction has been parsed.

Typedef commentSAXFunc

typedef void(* commentSAXFunc

commentSAXFunc: A comment has been parsed.

Typedef cdataBlockSAXFunc

typedef void(* cdataBlockSAXFunc

cdataBlockSAXFunc: Called when a pcdata block has been parsed.

Typedef warningSAXFunc

typedef void(* warningSAXFunc

warningSAXFunc: Display and format a warning messages, callback.

Typedef errorSAXFunc

typedef void(* errorSAXFunc

errorSAXFunc: Display and format an error messages, callback.

Typedef fatalErrorSAXFunc

typedef void(* fatalErrorSAXFunc

fatalErrorSAXFunc: Display and format fatal error messages, callback. Note: so far fatalError() SAX callbacks are not used, error() get all the callbacks for errors.

Typedef isStandaloneSAXFunc

typedef int(* isStandaloneSAXFunc

isStandaloneSAXFunc: Is this document tagged standalone?

Returns 1 if true

Typedef hasInternalSubsetSAXFunc

typedef int(* hasInternalSubsetSAXFunc

hasInternalSubsetSAXFunc: Does this document has an internal subset.

Returns 1 if true

Typedef hasExternalSubsetSAXFunc

typedef int(* hasExternalSubsetSAXFunc

hasExternalSubsetSAXFunc: Does this document has an external subset?

Returns 1 if true

Typedef startElementNsSAX2Func

typedef void(* startElementNsSAX2Func

startElementNsSAX2Func: 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.

Typedef endElementNsSAX2Func

typedef void(* endElementNsSAX2Func

endElementNsSAX2Func: SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.

Typedef startPrefixMappingSAX2Func

typedef void(* startPrefixMappingSAX2Func

startPrefixMappingSAX2Func: SAX2 callback when namespace prefix mapping is done.

Typedef endPrefixMappingSAX2Func

typedef void(* endPrefixMappingSAX2Func

endPrefixMappingSAX2Func: SAX2 callback when namespace prefix mapping is getting out of scope.

Typedef xmlSAXHandlerV1

typedef struct _xmlSAXHandlerV1 xmlSAXHandlerV1

Typedef xmlSAXHandlerV1Ptr

typedef xmlSAXHandlerV1 * xmlSAXHandlerV1Ptr

Typedef xmlExternalEntityLoader

typedef xmlParserInputPtr (* xmlExternalEntityLoader

xmlExternalEntityLoader: External entity loaders types.

Returns the entity input parser.