XMLPUBFUN const xmlChar *XMLCALL | xmlSAX2GetPublicId | ( | void * | ctx | ) |
XMLPUBFUN const xmlChar *XMLCALL | xmlSAX2GetSystemId | ( | void * | ctx | ) |
xmlSAX2GetSystemId: Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd
Returns a xmlChar *
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN void XMLCALL | xmlSAX2SetDocumentLocator | ( | void * | ctx, |
xmlSAXLocatorPtr | loc | |||
) |
XMLPUBFUN int XMLCALL | xmlSAX2GetLineNumber | ( | void * | ctx | ) |
xmlSAX2GetLineNumber: Provide the line number of the current parsing point.
Returns an int
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN int XMLCALL | xmlSAX2GetColumnNumber | ( | void * | ctx | ) |
xmlSAX2GetColumnNumber: Provide the column number of the current parsing point.
Returns an int
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN int XMLCALL | xmlSAX2IsStandalone | ( | void * | ctx | ) |
xmlSAX2IsStandalone: Is this document tagged standalone ?
Returns 1 if true
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN int XMLCALL | xmlSAX2HasInternalSubset | ( | void * | ctx | ) |
xmlSAX2HasInternalSubset: Does this document has an internal subset
Returns 1 if true
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN int XMLCALL | xmlSAX2HasExternalSubset | ( | void * | ctx | ) |
xmlSAX2HasExternalSubset: Does this document has an external subset
Returns 1 if true
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN void XMLCALL | xmlSAX2InternalSubset | ( | void * | ctx, |
const xmlChar * | name, | |||
const xmlChar * | ExternalID, | |||
const xmlChar * | SystemID | |||
) |
xmlSAX2InternalSubset: Callback on internal subset declaration.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | the root element name |
ExternalID | the external ID |
SystemID | the SYSTEM ID (e.g. filename or URL) |
XMLPUBFUN void XMLCALL | xmlSAX2ExternalSubset | ( | void * | ctx, |
const xmlChar * | name, | |||
const xmlChar * | ExternalID, | |||
const xmlChar * | SystemID | |||
) |
xmlSAX2ExternalSubset: Callback on external subset declaration.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | the root element name |
ExternalID | the external ID |
SystemID | the SYSTEM ID (e.g. filename or URL) |
XMLPUBFUN xmlEntityPtr XMLCALL | xmlSAX2GetEntity | ( | void * | ctx, |
const xmlChar * | name | |||
) |
xmlSAX2GetEntity: Get an entity by name
Returns the xmlEntityPtr if found.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | The entity name |
XMLPUBFUN xmlEntityPtr XMLCALL | xmlSAX2GetParameterEntity | ( | void * | ctx, |
const xmlChar * | name | |||
) |
xmlSAX2GetParameterEntity: Get a parameter entity by name
Returns the xmlEntityPtr if found.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | The entity name |
XMLPUBFUN xmlParserInputPtr XMLCALL | xmlSAX2ResolveEntity | ( | void * | ctx, |
const xmlChar * | publicId, | |||
const xmlChar * | systemId | |||
) |
override this xmlSAX2ResolveEntity() callback in the SAX block
or better use the xmlSetExternalEntityLoader() function to set up it's own entity resolution routine
Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
publicId | The public ID of the entity |
systemId | The system ID of the entity |
XMLPUBFUN void XMLCALL | xmlSAX2EntityDecl | ( | void * | ctx, |
const xmlChar * | name, | |||
int | type, | |||
const xmlChar * | publicId, | |||
const xmlChar * | systemId, | |||
xmlChar * | content | |||
) |
xmlSAX2EntityDecl: An entity definition has been parsed
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | the entity name |
type | the entity type |
publicId | The public ID of the entity |
systemId | The system ID of the entity |
content | the entity value (without processing). |
XMLPUBFUN void XMLCALL | xmlSAX2AttributeDecl | ( | void * | ctx, |
const xmlChar * | elem, | |||
const xmlChar * | fullname, | |||
int | type, | |||
int | def, | |||
const xmlChar * | defaultValue, | |||
xmlEnumerationPtr | tree | |||
) |
xmlSAX2AttributeDecl: An attribute definition has been parsed
Parameters | |
---|---|
ctx | the user data (XML parser context) |
elem | the name of the element |
fullname | the attribute name |
type | the attribute type |
def | the type of default value |
defaultValue | the attribute default value |
tree | the tree of enumerated value set |
XMLPUBFUN void XMLCALL | xmlSAX2ElementDecl | ( | void * | ctx, |
const xmlChar * | name, | |||
int | type, | |||
xmlElementContentPtr | content | |||
) |
xmlSAX2ElementDecl: An element definition has been parsed
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | the element name |
type | the element type |
content | the element value tree |
XMLPUBFUN void XMLCALL | xmlSAX2NotationDecl | ( | void * | ctx, |
const xmlChar * | name, | |||
const xmlChar * | publicId, | |||
const xmlChar * | systemId | |||
) |
xmlSAX2NotationDecl: What to do when a notation declaration has been parsed.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | The name of the notation |
publicId | The public ID of the entity |
systemId | The system ID of the entity |
XMLPUBFUN void XMLCALL | xmlSAX2UnparsedEntityDecl | ( | void * | ctx, |
const xmlChar * | name, | |||
const xmlChar * | publicId, | |||
const xmlChar * | systemId, | |||
const xmlChar * | notationName | |||
) |
xmlSAX2UnparsedEntityDecl: What to do when an unparsed entity declaration is parsed
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | The name of the entity |
publicId | The public ID of the entity |
systemId | The system ID of the entity |
notationName | the name of the notation |
XMLPUBFUN void XMLCALL | xmlSAX2StartDocument | ( | void * | ctx | ) |
xmlSAX2StartDocument: called when the document start being processed.
OOM: possible --> check OOM flag
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN void XMLCALL | xmlSAX2EndDocument | ( | void * | ctx | ) |
xmlSAX2EndDocument: called when the document end has been detected.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
XMLPUBFUN void XMLCALL | xmlSAX2StartElement | ( | void * | ctx, |
const xmlChar * | fullname, | |||
const xmlChar ** | atts | |||
) |
XMLPUBFUN void XMLCALL | xmlSAX2EndElement | ( | void * | ctx, |
const xmlChar * | name | |||
) |
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: 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.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
localname | the local name of the element |
prefix | the element namespace prefix if available |
URI | the element namespace name if available |
nb_namespaces | number of namespace definitions on that node |
namespaces | pointer to the array of prefix/URI pairs namespace definitions |
nb_attributes | the number of attributes on that node |
nb_defaulted | the number of defaulted attributes. |
attributes | pointer to the array of (localname/prefix/URI/value/end) attribute values. |
XMLPUBFUN void XMLCALL | xmlSAX2EndElementNs | ( | void * | ctx, |
const xmlChar * | localname, | |||
const xmlChar * | prefix, | |||
const xmlChar * | URI | |||
) |
XMLPUBFUN void XMLCALL | xmlSAX2Reference | ( | void * | ctx, |
const xmlChar * | name | |||
) |
xmlSAX2Reference: called when an entity xmlSAX2Reference is detected.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
name | The entity name |
XMLPUBFUN void XMLCALL | xmlSAX2Characters | ( | void * | ctx, |
const xmlChar * | ch, | |||
int | len | |||
) |
xmlSAX2Characters: receiving some chars from the parser.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
ch | a xmlChar string |
len | the number of xmlChar |
XMLPUBFUN void XMLCALL | xmlSAX2IgnorableWhitespace | ( | void * | ctx, |
const xmlChar * | ch, | |||
int | len | |||
) |
XMLPUBFUN void XMLCALL | xmlSAX2Comment | ( | void * | ctx, |
const xmlChar * | value | |||
) |
xmlSAX2Comment: A xmlSAX2Comment has been parsed.
Parameters | |
---|---|
ctx | the user data (XML parser context) |
value | the xmlSAX2Comment content |
XMLPUBFUN void XMLCALL | xmlSAX2CDataBlock | ( | void * | ctx, |
const xmlChar * | value, | |||
int | len | |||
) |
xmlSAX2CDataBlock: called when a pcdata block has been parsed
Parameters | |
---|---|
ctx | the user data (XML parser context) |
value | The pcdata content |
len | the block length |
XMLPUBFUN int XMLCALL | xmlSAXDefaultVersion | ( | int | version | ) |
XMLPUBFUN int XMLCALL | xmlSAXVersion | ( | xmlSAXHandler * | hdlr, |
int | version | |||
) |
xmlSAXVersion: Initialize the default XML SAX handler according to the version
Returns 0 in case of success and -1 in case of error.
OOM: never
Parameters | |
---|---|
hdlr | the SAX handler |
version | the version, 1 or 2 |
XMLPUBFUN void XMLCALL | xmlSAX2InitDefaultSAXHandler | ( | xmlSAXHandler * | hdlr, |
int | warning | |||
) |
xmlSAX2InitDefaultSAXHandler: Initialize the default XML SAX2 handler
Parameters | |
---|---|
hdlr | the SAX handler |
warning | flag if non-zero sets the handler warning procedure |