|
Data Structures |
struct | _xmlParserInput |
struct | _xmlParserNodeInfo |
struct | _xmlParserNodeInfoSeq |
struct | _xmlParserCtxt |
struct | _xmlSAXLocator |
struct | _xmlSAXHandler |
struct | _xmlSAXHandlerV1 |
: The entity name |
referenceSAXFunc: : the user data (XML parser context)
Called when an entity reference is detected.
|
#define | XML_SAX2_MAGIC 0xDEEDBEAF |
typedef void(* | referenceSAXFunc )(void *ctx, const xmlChar *name) |
typedef void(* | charactersSAXFunc )(void *ctx, const xmlChar *ch, int len) |
typedef void(* | ignorableWhitespaceSAXFunc )(void *ctx, const xmlChar *ch, int len) |
typedef void(* | processingInstructionSAXFunc )(void *ctx, const xmlChar *target, const xmlChar *data) |
typedef void(* | commentSAXFunc )(void *ctx, const xmlChar *value) |
typedef void(* | cdataBlockSAXFunc )(void *ctx, const xmlChar *value, int len) |
typedef void(* | warningSAXFunc )(void *ctx, const char *msg,...) |
typedef void(* | errorSAXFunc )(void *ctx, const char *msg,...) |
typedef void(* | fatalErrorSAXFunc )(void *ctx, const char *msg,...) |
typedef int(* | isStandaloneSAXFunc )(void *ctx) |
typedef int(* | hasInternalSubsetSAXFunc )(void *ctx) |
typedef int(* | hasExternalSubsetSAXFunc )(void *ctx) |
typedef void(* | startElementNsSAX2Func )(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) |
typedef void(* | endElementNsSAX2Func )(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI) |
typedef _xmlSAXHandlerV1 | xmlSAXHandlerV1 |
typedef xmlSAXHandlerV1 * | xmlSAXHandlerV1Ptr |
typedef xmlParserInputPtr(* | xmlExternalEntityLoader )(const char *URL, const char *ID, xmlParserCtxtPtr context) |
enum | xmlParserOption {
XML_PARSE_RECOVER = 1<<0,
XML_PARSE_NOENT = 1<<1,
XML_PARSE_DTDLOAD = 1<<2,
XML_PARSE_DTDATTR = 1<<3,
XML_PARSE_DTDVALID = 1<<4,
XML_PARSE_NOERROR = 1<<5,
XML_PARSE_NOWARNING = 1<<6,
XML_PARSE_PEDANTIC = 1<<7,
XML_PARSE_NOBLANKS = 1<<8,
XML_PARSE_SAX1 = 1<<9,
XML_PARSE_XINCLUDE = 1<<10,
XML_PARSE_NONET = 1<<11,
XML_PARSE_NODICT = 1<<12,
XML_PARSE_NSCLEAN = 1<<13,
XML_PARSE_NOCDATA = 1<<14,
XML_PARSE_NOXINCNODE = 1<<15
} |
XMLPUBFUN void XMLCALL | xmlInitParser (void) |
XMLPUBFUN void XMLCALL | xmlCleanupParser (void) |
XMLPUBFUN int XMLCALL | xmlParserInputRead (xmlParserInputPtr in, int len) |
XMLPUBFUN int XMLCALL | xmlParserInputGrow (xmlParserInputPtr in, int len) |
XMLPUBFUN int XMLCALL | xmlSubstituteEntitiesDefault (int val) |
XMLPUBFUN int XMLCALL | xmlKeepBlanksDefault (int val) |
XMLPUBFUN int XMLCALL | xmlPedanticParserDefault (int val) |
XMLPUBFUN int XMLCALL | xmlLineNumbersDefault (int val) |
XMLPUBFUN int XMLCALL | xmlParseDocument (xmlParserCtxtPtr ctxt) |
XMLPUBFUN int XMLCALL | xmlParseExtParsedEnt (xmlParserCtxtPtr ctxt) |
XMLPUBFUN xmlParserErrors
XMLCALL | xmlParseInNodeContext (xmlNodePtr node, const char *data, int datalen, int options, xmlNodePtr *lst) |
XMLPUBFUN int XMLCALL | xmlParseCtxtExternalEntity (xmlParserCtxtPtr ctx, const xmlChar *URL, const xmlChar *ID, xmlNodePtr *lst) |
XMLPUBFUN xmlParserCtxtPtr
XMLCALL | xmlNewParserCtxt (void) |
XMLPUBFUN int XMLCALL | xmlInitParserCtxt (xmlParserCtxtPtr ctxt) |
XMLPUBFUN void XMLCALL | xmlClearParserCtxt (xmlParserCtxtPtr ctxt) |
XMLPUBFUN void XMLCALL | xmlFreeParserCtxt (xmlParserCtxtPtr ctxt) |
XMLPUBFUN xmlParserCtxtPtr
XMLCALL | xmlCreateDocParserCtxt (const xmlChar *cur) |
XMLPUBFUN xmlParserCtxtPtr
XMLCALL | xmlCreateIOParserCtxt (xmlSAXHandlerPtr sax, void *user_data, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, xmlCharEncoding enc) |
XMLPUBFUN xmlParserInputPtr
XMLCALL | xmlNewIOInputStream (xmlParserCtxtPtr ctxt, xmlParserInputBufferPtr input, xmlCharEncoding enc) |
XMLPUBFUN const xmlParserNodeInfo
*XMLCALL | xmlParserFindNodeInfo (const xmlParserCtxtPtr ctxt, const xmlNodePtr node) |
XMLPUBFUN void XMLCALL | xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq) |
XMLPUBFUN void XMLCALL | xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq) |
XMLPUBFUN unsigned long XMLCALL | xmlParserFindNodeInfoIndex (const xmlParserNodeInfoSeqPtr seq, const xmlNodePtr node) |
XMLPUBFUN void XMLCALL | xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt, const xmlParserNodeInfoPtr info) |
XMLPUBFUN void XMLCALL | xmlSetExternalEntityLoader (xmlExternalEntityLoader f) |
XMLPUBFUN xmlExternalEntityLoader
XMLCALL | xmlGetExternalEntityLoader (void) |
XMLPUBFUN xmlParserInputPtr
XMLCALL | xmlLoadExternalEntity (const char *URL, const char *ID, xmlParserCtxtPtr ctxt) |
XMLPUBFUN long XMLCALL | xmlByteConsumed (xmlParserCtxtPtr ctxt) |
XMLPUBFUN void XMLCALL | xmlCtxtReset (xmlParserCtxtPtr ctxt) |
XMLPUBFUN int XMLCALL | xmlCtxtResetPush (xmlParserCtxtPtr ctxt, const char *chunk, int size, const char *filename, const char *encoding) |
XMLPUBFUN int XMLCALL | xmlCtxtUseOptions (xmlParserCtxtPtr ctxt, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlReadDoc (const xmlChar *cur, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlReadFile (const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlReadMemory (const char *buffer, int size, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlReadFd (int fd, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlReadIO (xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlCtxtReadDoc (xmlParserCtxtPtr ctxt, const xmlChar *cur, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlCtxtReadFile (xmlParserCtxtPtr ctxt, const char *filename, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlCtxtReadMemory (xmlParserCtxtPtr ctxt, const char *buffer, int size, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlCtxtReadFd (xmlParserCtxtPtr ctxt, int fd, const char *URL, const char *encoding, int options) |
XMLPUBFUN xmlDocPtr XMLCALL | xmlCtxtReadIO (xmlParserCtxtPtr ctxt, xmlInputReadCallback ioread, xmlInputCloseCallback ioclose, void *ioctx, const char *URL, const char *encoding, int options) |
: the root element name |
internalSubsetSAXFunc: : the user data (XML parser context)
: the external ID : the SYSTEM ID (e.g. filename or URL)
Callback on internal subset declaration.
|
typedef void(* | internalSubsetSAXFunc )(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID) |
: the root element name |
externalSubsetSAXFunc: : the user data (XML parser context)
: the external ID : the SYSTEM ID (e.g. filename or URL)
Callback on external subset declaration.
|
typedef void(* | externalSubsetSAXFunc )(void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID) |
: The entity name |
getEntitySAXFunc: : the user data (XML parser context)
Get an entity by name.
Returns the xmlEntityPtr if found.
|
typedef xmlEntityPtr(* | getEntitySAXFunc )(void *ctx, const xmlChar *name) |
: The entity name |
getParameterEntitySAXFunc: : the user data (XML parser context)
Get a parameter entity by name.
Returns the xmlEntityPtr if found.
|
typedef xmlEntityPtr(* | getParameterEntitySAXFunc )(void *ctx, const xmlChar *name) |
: the entity name |
entityDeclSAXFunc: : the user data (XML parser context)
: the entity type : The public ID of the entity : The system ID of the entity : the entity value (without processing).
An entity definition has been parsed.
|
typedef void(* | entityDeclSAXFunc )(void *ctx, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content) |
: The name of the notation |
notationDeclSAXFunc: : the user data (XML parser context)
: The public ID of the entity : The system ID of the entity
What to do when a notation declaration has been parsed.
|
typedef void(* | notationDeclSAXFunc )(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId) |
typedef void(* | attributeDeclSAXFunc )(void *ctx, const xmlChar *elem, const xmlChar *fullname, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree) |
: the element name |
elementDeclSAXFunc: : the user data (XML parser context)
: the element type : the element value tree
An element definition has been parsed.
|
typedef void(* | elementDeclSAXFunc )(void *ctx, const xmlChar *name, int type, xmlElementContentPtr content) |
: The name of the entity |
unparsedEntityDeclSAXFunc: : the user data (XML parser context)
: The public ID of the entity : The system ID of the entity : the name of the notation
What to do when an unparsed entity declaration is parsed.
|
typedef void(* | unparsedEntityDeclSAXFunc )(void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName) |
typedef void(* | setDocumentLocatorSAXFunc )(void *ctx, xmlSAXLocatorPtr loc) |
typedef void(* | startDocumentSAXFunc )(void *ctx) |
typedef void(* | endDocumentSAXFunc )(void *ctx) |
: The element name, including namespace prefix |
startElementSAXFunc: : the user data (XML parser context)
: An array of name/value attributes pairs, NULL terminated
Called when an opening tag has been processed.
|
typedef void(* | startElementSAXFunc )(void *ctx, const xmlChar *name, const xmlChar **atts) |
: The element name |
endElementSAXFunc: : the user data (XML parser context)
Called when the end of an element has been detected.
|
typedef void(* | endElementSAXFunc )(void *ctx, const xmlChar *name) |
: The attribute name, including namespace prefix |
attributeSAXFunc: : the user data (XML parser context)
: The attribute 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.
|
typedef void(* | attributeSAXFunc )(void *ctx, const xmlChar *name, const xmlChar *value) |
Defines |
#define | XML_DEFAULT_VERSION "1.0" |
#define | XML_DETECT_IDS 2 |
#define | XML_COMPLETE_ATTRS 4 |
#define | XML_SKIP_IDS 8 |
Typedefs |
typedef void(* | xmlParserInputDeallocate )(xmlChar *str) |
typedef _xmlParserNodeInfo | xmlParserNodeInfo |
typedef xmlParserNodeInfo * | xmlParserNodeInfoPtr |
typedef _xmlParserNodeInfoSeq | xmlParserNodeInfoSeq |
typedef xmlParserNodeInfoSeq * | xmlParserNodeInfoSeqPtr |
typedef xmlParserInputPtr(* | resolveEntitySAXFunc )(void *ctx, const xmlChar *publicId, const xmlChar *systemId) |
Enumerations |
enum | xmlParserInputState {
XML_PARSER_EOF = -1,
XML_PARSER_START = 0,
XML_PARSER_MISC,
XML_PARSER_PI,
XML_PARSER_DTD,
XML_PARSER_PROLOG,
XML_PARSER_COMMENT,
XML_PARSER_START_TAG,
XML_PARSER_CONTENT,
XML_PARSER_CDATA_SECTION,
XML_PARSER_END_TAG,
XML_PARSER_ENTITY_DECL,
XML_PARSER_ENTITY_VALUE,
XML_PARSER_ATTRIBUTE_VALUE,
XML_PARSER_SYSTEM_LITERAL,
XML_PARSER_EPILOG,
XML_PARSER_IGNORE,
XML_PARSER_PUBLIC_LITERAL
} |
enum | xmlParserMode {
XML_PARSE_UNKNOWN = 0,
XML_PARSE_DOM = 1,
XML_PARSE_SAX = 2,
XML_PARSE_PUSH_DOM = 3,
XML_PARSE_PUSH_SAX = 4,
XML_PARSE_READER = 5
} |