Details
getPublicId ()
const xmlChar* getPublicId (void *ctx); |
Return the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"
getSystemId ()
const xmlChar* getSystemId (void *ctx); |
Return the system ID, basically URL or filename e.g.
http://www.sgmlsource.com/dtds/memo.dtd
setDocumentLocator ()
Receive the document locator at startup, actually xmlDefaultSAXLocator
Everything is available on the context, so this is useless in our case.
getLineNumber ()
int getLineNumber (void *ctx); |
Return the line number of the current parsing point.
getColumnNumber ()
int getColumnNumber (void *ctx); |
Return the column number of the current parsing point.
isStandalone ()
int isStandalone (void *ctx); |
Is this document tagged standalone ?
hasInternalSubset ()
int hasInternalSubset (void *ctx); |
Does this document has an internal subset
hasExternalSubset ()
int hasExternalSubset (void *ctx); |
Does this document has an external subset
internalSubset ()
void internalSubset (void *ctx,
const xmlChar *name,
const xmlChar *ExternalID,
const xmlChar *SystemID); |
Callback on internal subset declaration.
externalSubset ()
void externalSubset (void *ctx,
const xmlChar *name,
const xmlChar *ExternalID,
const xmlChar *SystemID); |
Callback on external subset declaration.
getEntity ()
Get an entity by name
getParameterEntity ()
Get a parameter entity by name
resolveEntity ()
The entity loader, to control the loading of external entities,
the application can either:
- override this resolveEntity() callback in the SAX block
- or better use the xmlSetExternalEntityLoader() function to
set up it's own entity resolution routine
entityDecl ()
An entity definition has been parsed
attributeDecl ()
An attribute definition has been parsed
elementDecl ()
An element definition has been parsed
notationDecl ()
What to do when a notation declaration has been parsed.
unparsedEntityDecl ()
What to do when an unparsed entity declaration is parsed
startDocument ()
void startDocument (void *ctx); |
called when the document start being processed.
endDocument ()
void endDocument (void *ctx); |
called when the document end has been detected.
attribute ()
void attribute (void *ctx,
const xmlChar *fullname,
const xmlChar *value); |
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.
startElement ()
void startElement (void *ctx,
const xmlChar *fullname,
const xmlChar **atts); |
called when an opening tag has been processed.
endElement ()
void endElement (void *ctx,
const xmlChar *name); |
called when the end of an element has been detected.
reference ()
void reference (void *ctx,
const xmlChar *name); |
called when an entity reference is detected.
characters ()
void characters (void *ctx,
const xmlChar *ch,
int len); |
receiving some chars from the parser.
ignorableWhitespace ()
void ignorableWhitespace (void *ctx,
const xmlChar *ch,
int len); |
receiving some ignorable whitespaces from the parser.
UNUSED: by default the DOM building will use characters
processingInstruction ()
void processingInstruction (void *ctx,
const xmlChar *target,
const xmlChar *data); |
A processing instruction has been parsed.
globalNamespace ()
void globalNamespace (void *ctx,
const xmlChar *href,
const xmlChar *prefix); |
An old global namespace has been parsed.
setNamespace ()
void setNamespace (void *ctx,
const xmlChar *name); |
Set the current element namespace.
getNamespace ()
Get the current element namespace.
checkNamespace ()
int checkNamespace (void *ctx,
xmlChar *nameSpace); |
Check that the current element namespace is the same as the
one read upon parsing.
namespaceDecl ()
void namespaceDecl (void *ctx,
const xmlChar *href,
const xmlChar *prefix); |
A namespace has been parsed.
comment ()
void comment (void *ctx,
const xmlChar *value); |
A comment has been parsed.
cdataBlock ()
void cdataBlock (void *ctx,
const xmlChar *value,
int len); |
called when a pcdata block has been parsed
initxmlDefaultSAXHandler ()
void initxmlDefaultSAXHandler (xmlSAXHandler *hdlr,
int warning); |
Initialize the default XML SAX handler
inithtmlDefaultSAXHandler ()
Initialize the default HTML SAX handler
initdocbDefaultSAXHandler ()
Initialize the default DocBook SAX handler
xmlDefaultSAXHandlerInit ()
void xmlDefaultSAXHandlerInit (void); |
Initialize the default SAX handler
htmlDefaultSAXHandlerInit ()
void htmlDefaultSAXHandlerInit (void); |
Initialize the default SAX handler
docbDefaultSAXHandlerInit ()
void docbDefaultSAXHandlerInit (void); |
Initialize the default SAX handler