xmlParserInputPtr (*resolveEntitySAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *publicId, const CHAR *systemId); |
ctxt : | |
publicId : | |
systemId : | |
Returns : |
void (*internalSubsetSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, const CHAR *ExternalID, const CHAR *SystemID); |
ctxt : | |
name : | |
ExternalID : | |
SystemID : |
xmlEntityPtr (*getEntitySAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name); |
ctxt : | |
name : | |
Returns : |
void (*entityDeclSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, int type, const CHAR *publicId, const CHAR *systemId, CHAR *content); |
ctxt : | |
name : | |
type : | |
publicId : | |
systemId : | |
content : |
void (*notationDeclSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, const CHAR *publicId, const CHAR *systemId); |
ctxt : | |
name : | |
publicId : | |
systemId : |
void (*attributeDeclSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *elem, const CHAR *name, int type, int def, const CHAR *defaultValue, xmlEnumerationPtr tree); |
ctxt : | |
elem : | |
name : | |
type : | |
def : | |
defaultValue : | |
tree : |
void (*elementDeclSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, int type, xmlElementContentPtr content); |
ctxt : | |
name : | |
type : | |
content : |
void (*unparsedEntityDeclSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, const CHAR *publicId, const CHAR *systemId, const CHAR *notationName); |
ctxt : | |
name : | |
publicId : | |
systemId : | |
notationName : |
void (*setDocumentLocatorSAXFunc) (xmlParserCtxtPtr ctxt, xmlSAXLocatorPtr loc); |
ctxt : | |
loc : |
void (*startElementSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, const CHAR **atts); |
ctxt : | |
name : | |
atts : |
void (*endElementSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name); |
ctxt : | |
name : |
void (*attributeSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *name, const CHAR *value); |
ctxt : | |
name : | |
value : |
void (*charactersSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *ch, int len); |
ctxt : | |
ch : | |
len : |
void (*ignorableWhitespaceSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *ch, int len); |
ctxt : | |
ch : | |
len : |
void (*processingInstructionSAXFunc) (xmlParserCtxtPtr ctxt, const CHAR *target, const CHAR *data); |
ctxt : | |
target : | |
data : |
void (*warningSAXFunc) (xmlParserCtxtPtr ctxt, const char *msg, ...); |
ctxt : | |
msg : | |
... : |
void (*fatalErrorSAXFunc) (xmlParserCtxtPtr ctxt, const char *msg, ...); |
ctxt : | |
msg : | |
... : |
CHAR* xmlStrdup (const CHAR *cur); |
a strdup for array of CHAR's
cur : | the input CHAR * |
Returns : | a new CHAR * or NULL |
CHAR* xmlStrndup (const CHAR *cur, int len); |
a strndup for array of CHAR's
cur : | the input CHAR * |
len : | the len of cur |
Returns : | a new CHAR * or NULL |
CHAR* xmlStrchr (const CHAR *str, CHAR val); |
a strchr for CHAR's
str : | the CHAR * array |
val : | the CHAR to search |
Returns : | the CHAR * for the first occurence or NULL. |
int xmlStrcmp (const CHAR *str1, const CHAR *str2); |
a strcmp for CHAR's
str1 : | the first CHAR * |
str2 : | the second CHAR * |
Returns : | the integer result of the comparison |
int xmlStrncmp (const CHAR *str1, const CHAR *str2, int len); |
a strncmp for CHAR's
str1 : | the first CHAR * |
str2 : | the second CHAR * |
len : | the max comparison length |
Returns : | the integer result of the comparison |
int xmlStrlen (const CHAR *str); |
lenght of a CHAR's string
str : | the CHAR * array |
Returns : | the number of CHAR contained in the ARRAY. |
CHAR* xmlStrcat (CHAR *cur, const CHAR *add); |
a strcat for array of CHAR's
cur : | the original CHAR * array |
add : | the CHAR * array added |
Returns : | a new CHAR * containing the concatenated string. |
CHAR* xmlStrncat (CHAR *cur, const CHAR *add, int len); |
a strncat for array of CHAR's
cur : | the original CHAR * array |
add : | the CHAR * array added |
len : | the length of add |
Returns : | a new CHAR * containing the concatenated string. |
xmlDocPtr xmlParseDoc (CHAR *cur); |
parse an XML in-memory document and build a tree.
cur : | a pointer to an array of CHAR |
Returns : | the resulting document tree |
xmlDocPtr xmlParseMemory (char *buffer, int size); |
parse an XML in-memory block and build a tree.
buffer : | an pointer to a char array |
size : | the size of the array |
Returns : | the resulting document tree |
xmlDocPtr xmlParseFile (const char *filename); |
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
filename : | the filename |
Returns : | the resulting document tree |
xmlDocPtr xmlRecoverDoc (CHAR *cur); |
parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a tree is built anyway
cur : | a pointer to an array of CHAR |
Returns : | the resulting document tree |
xmlDocPtr xmlRecoverMemory (char *buffer, int size); |
parse an XML in-memory block and build a tree. In the case the document is not Well Formed, a tree is built anyway
buffer : | an pointer to a char array |
size : | the size of the array |
Returns : | the resulting document tree |
xmlDocPtr xmlRecoverFile (const char *filename); |
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, a tree is built anyway
filename : | the filename |
Returns : | the resulting document tree |
int xmlParseDocument (xmlParserCtxtPtr ctxt); |
parse an XML document (and build a tree if using the standard SAX interface).
[1] document ::= prolog element Misc*
[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
ctxt : | an XML parser context |
Returns : | 0, -1 in case of error. the parser context is augmented as a result of the parsing. |
xmlDocPtr xmlSAXParseDoc (xmlSAXHandlerPtr sax, CHAR *cur, int recovery); |
parse an XML in-memory document and build a tree. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax : | the SAX handler block |
cur : | a pointer to an array of CHAR |
recovery : | work in recovery mode, i.e. tries to read no Well Formed documents |
Returns : | the resulting document tree |
xmlDocPtr xmlSAXParseMemory (xmlSAXHandlerPtr sax, char *buffer, int size, int recovery); |
parse an XML in-memory block and use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
TODO : plug some encoding conversion routines here. !!!
sax : | the SAX handler block |
buffer : | an pointer to a char array |
size : | the siwe of the array |
recovery : | work in recovery mode, i.e. tries to read no Well Formed documents |
Returns : | the resulting document tree |
xmlDocPtr xmlSAXParseFile (xmlSAXHandlerPtr sax, const char *filename, int recovery); |
parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. It use the given SAX function block to handle the parsing callback. If sax is NULL, fallback to the default DOM tree building routines.
sax : | the SAX handler block |
filename : | the filename |
recovery : | work in recovery mode, i.e. tries to read no Well Formed documents |
Returns : | the resulting document tree |
void xmlInitParserCtxt (xmlParserCtxtPtr ctxt); |
Initialize a parser context
ctxt : | an XML parser context |
void xmlClearParserCtxt (xmlParserCtxtPtr ctxt); |
Clear (release owned resources) and reinitialize a parser context
ctxt : | an XML parser context |
void xmlSetupParserForBuffer (xmlParserCtxtPtr ctxt, const CHAR *buffer, const char *filename); |
Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be NULL, but the filename parameter can be
ctxt : | an XML parser context |
buffer : | a CHAR * buffer |
filename : | a file name |
const xmlParserNodeInfo* xmlParserFindNodeInfo (const xmlParserCtxt *ctxt, const xmlNode *node); |
Find the parser node info struct for a given node
ctxt : | an XML parser context |
node : | an XML node within the tree |
Returns : | an xmlParserNodeInfo block pointer or NULL |
void xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
-- Initialize (set to initial state) node info sequence
seq : | a node info sequence pointer |
void xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq); |
-- Clear (release memory and reinitialize) node info sequence
seq : | a node info sequence pointer |
unsigned |
xmlParserFindNodeInfoIndex : Find the index that the info record for the given node is or should be at in a sorted sequence
seq : | a node info sequence pointer |
node : | an XML node pointer |
Returns : | a long indicating the position of the record |
void xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt, const xmlParserNodeInfo *info); |
Insert node info record into the sorted sequence
ctxt : | an XML parser context |
info : | a node info sequence pointer |