ReactOS
0.4.15-dev-2087-g6bfb76b
|
#include "libxml.h"
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stddef.h>
#include <libxml/xmlmemory.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/valid.h>
#include <libxml/entities.h>
#include <libxml/xmlerror.h>
#include <libxml/debugXML.h>
#include <libxml/xmlIO.h>
#include <libxml/SAX.h>
#include <libxml/uri.h>
#include <libxml/HTMLtree.h>
#include <libxml/globals.h>
#include "elfgcchack.h"
Go to the source code of this file.
Macros | |
#define | IN_LIBXML |
#define | SIZE_T_MAX ((size_t)-1) |
#define | TODO |
Functions | |
static void | LIBXML_ATTR_FORMAT (2, 0) |
static void | LIBXML_ATTR_FORMAT (3, 0) |
const xmlChar * | xmlSAX2GetPublicId (void *ctx ATTRIBUTE_UNUSED) |
const xmlChar * | xmlSAX2GetSystemId (void *ctx) |
int | xmlSAX2GetLineNumber (void *ctx) |
int | xmlSAX2GetColumnNumber (void *ctx) |
int | xmlSAX2IsStandalone (void *ctx) |
int | xmlSAX2HasInternalSubset (void *ctx) |
int | xmlSAX2HasExternalSubset (void *ctx) |
: the root element name | |
xmlSAX2ExternalSubset: @ctx: the user data (XML parser context) @ExternalID: the external ID @SystemID: the SYSTEM ID (e.g. filename or URL) Callback on external subset declaration. | |
void | xmlSAX2InternalSubset (void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID) |
void | xmlSAX2ExternalSubset (void *ctx, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID) |
xmlParserInputPtr | xmlSAX2ResolveEntity (void *ctx, const xmlChar *publicId, const xmlChar *systemId) |
: The entity name | |
xmlSAX2GetParameterEntity: @ctx: the user data (XML parser context) Get a parameter entity by name Returns the xmlEntityPtr if found. | |
xmlEntityPtr | xmlSAX2GetEntity (void *ctx, const xmlChar *name) |
xmlEntityPtr | xmlSAX2GetParameterEntity (void *ctx, const xmlChar *name) |
: the element name | |
xmlSAX2ElementDecl: @ctx: the user data (XML parser context) @type: the element type @content: the element value tree An element definition has been parsed | |
void | xmlSAX2ElementDecl (void *ctx, const xmlChar *name, int type, xmlElementContentPtr content) |
: The name of the notation | |
xmlSAX2NotationDecl: @ctx: the user data (XML parser context) @publicId: The public ID of the entity @systemId: The system ID of the entity What to do when a notation declaration has been parsed. | |
void | xmlSAX2NotationDecl (void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId) |
: The name of the entity | |
xmlSAX2UnparsedEntityDecl: @ctx: the user data (XML parser context) @publicId: The public ID of the entity @systemId: The system ID of the entity @notationName: the name of the notation What to do when an unparsed entity declaration is parsed | |
void | xmlSAX2UnparsedEntityDecl (void *ctx, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName) |
void | xmlSAX2SetDocumentLocator (void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED) |
void | xmlSAX2StartDocument (void *ctx) |
void | xmlSAX2EndDocument (void *ctx) |
static xmlNodePtr | xmlSAX2TextNode (xmlParserCtxtPtr ctxt, const xmlChar *str, int len) |
static void | xmlSAX2AttributeNs (xmlParserCtxtPtr ctxt, const xmlChar *localname, const xmlChar *prefix, const xmlChar *value, const xmlChar *valueend) |
void | 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) |
void | xmlSAX2EndElementNs (void *ctx, const xmlChar *localname ATTRIBUTE_UNUSED, const xmlChar *prefix ATTRIBUTE_UNUSED, const xmlChar *URI ATTRIBUTE_UNUSED) |
#define TODO |
TODO:
macro to flag unimplemented blocks XML_CATALOG_PREFER user env to select between system/public preferred option. C.f. Richard Tobin richa rd@c ogsci .ed. ac.uk
Just FYI, I am using an environment variable XML_CATALOG_PREFER with values "system" and "public". I have made the default be "system" to match yours.
|
static |
Definition at line 59 of file SAX2.c.
|
static |
xmlValidError: @ctxt: an XML validation parser context @error: the error number @msg: the error message @str1: extra data @str2: extra data
Handle a validation error
xmlFatalErrMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an error string @str2: an error string
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlWarnMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an error string @str2: an error string
Handle a parser warning
xmlNsErrMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an error string @str2: an error string
Handle a namespace error
xmlNsWarnMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an error string
Handle a namespace warning
xmlDefaultSAXHandlerInit:
Initialize the default SAX2 handler
Definition at line 2941 of file SAX2.c.
Referenced by xmlInitParser(), xmlInitParserCtxt(), and xmlParseExtParsedEnt().
void xmlSAX2AttributeDecl | ( | void * | ctx, |
const xmlChar * | elem, | ||
const xmlChar * | fullname, | ||
int | type, | ||
int | def, | ||
const xmlChar * | defaultValue, | ||
xmlEnumerationPtr | tree | ||
) |
Definition at line 734 of file SAX2.c.
Referenced by xmlSAXVersion().
|
static |
xmlSAX2AttributeNs: @ctx: the user data (XML parser context) @localname: the local name of the attribute @prefix: the attribute namespace prefix if available @URI: the attribute namespace name if available @value: Start of the attribute value @valueend: end of 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.
Definition at line 1980 of file SAX2.c.
Referenced by xmlSAX2StartElementNs().
xmlSAX2CDataBlock: @ctx: the user data (XML parser context) @value: The pcdata content @len: the block length
called when a pcdata block has been parsed
Definition at line 2806 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2Characters: @ctx: the user data (XML parser context) @ch: a xmlChar string @len: the number of xmlChar
receiving some chars from the parser.
Definition at line 2534 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2Comment: @ctx: the user data (XML parser context) @value: the xmlSAX2Comment content
A xmlSAX2Comment has been parsed.
Definition at line 2744 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2ElementDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
int | type, | ||
xmlElementContentPtr | content | ||
) |
Definition at line 802 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2EndDocument: @ctx: the user data (XML parser context)
called when the document end has been detected.
Definition at line 1048 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2EndElementNs | ( | void * | ctx, |
const xmlChar *localname | ATTRIBUTE_UNUSED, | ||
const xmlChar *prefix | ATTRIBUTE_UNUSED, | ||
const xmlChar *URI | ATTRIBUTE_UNUSED | ||
) |
xmlSAX2EndElementNs: @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
SAX2 callback when an element end has been detected by the parser. It provides the namespace informations for the element.
Definition at line 2462 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2EntityDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
int | type, | ||
const xmlChar * | publicId, | ||
const xmlChar * | systemId, | ||
xmlChar * | content | ||
) |
Definition at line 664 of file SAX2.c.
Referenced by xmlParseEntityDecl(), and xmlSAXVersion().
void xmlSAX2ExternalSubset | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | ExternalID, | ||
const xmlChar * | SystemID | ||
) |
Definition at line 392 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2GetColumnNumber: @ctx: the user data (XML parser context)
Provide the column number of the current parsing point.
Returns an int
Definition at line 289 of file SAX2.c.
Referenced by xmlInitializeGlobalState().
xmlEntityPtr xmlSAX2GetEntity | ( | void * | ctx, |
const xmlChar * | name | ||
) |
Definition at line 556 of file SAX2.c.
Referenced by xmlParseEntityDecl(), xmlParseEntityRef(), xmlParseStringEntityRef(), and xmlSAXVersion().
xmlSAX2GetLineNumber: @ctx: the user data (XML parser context)
Provide the line number of the current parsing point.
Returns an int
Definition at line 273 of file SAX2.c.
Referenced by xmlInitializeGlobalState().
xmlEntityPtr xmlSAX2GetParameterEntity | ( | void * | ctx, |
const xmlChar * | name | ||
) |
Definition at line 636 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2GetSystemId: @ctx: the user data (XML parser context)
Provides the system ID, basically URL or filename e.g. http://www.sgmlsource.com/dtds/memo.dtd
Returns a xmlChar *
Definition at line 257 of file SAX2.c.
Referenced by xmlInitializeGlobalState().
xmlSAX2HasExternalSubset: @ctx: the user data (XML parser context)
Does this document has an external subset
Returns 1 if true
Definition at line 337 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2HasInternalSubset: @ctx: the user data (XML parser context)
Does this document has an internal subset
Returns 1 if true
Definition at line 321 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2IgnorableWhitespace | ( | void *ctx | ATTRIBUTE_UNUSED, |
const xmlChar *ch | ATTRIBUTE_UNUSED, | ||
int len | ATTRIBUTE_UNUSED | ||
) |
void xmlSAX2InitDefaultSAXHandler | ( | xmlSAXHandler * | hdlr, |
int | warning | ||
) |
xmlSAX2InitDefaultSAXHandler: @hdlr: the SAX handler
Initialize the default XML SAX2 handler
Definition at line 2923 of file SAX2.c.
void xmlSAX2InternalSubset | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | ExternalID, | ||
const xmlChar * | SystemID | ||
) |
Definition at line 354 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2IsStandalone: @ctx: the user data (XML parser context)
Is this document tagged standalone ?
Returns 1 if true
Definition at line 305 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2NotationDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | publicId, | ||
const xmlChar * | systemId | ||
) |
Definition at line 848 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2ProcessingInstruction: @ctx: the user data (XML parser context) @target: the target name @data: the PI data's
A processing instruction has been parsed.
Definition at line 2680 of file SAX2.c.
Referenced by xmlSAXVersion().
Definition at line 2502 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlParserInputPtr xmlSAX2ResolveEntity | ( | void * | ctx, |
const xmlChar * | publicId, | ||
const xmlChar * | systemId | ||
) |
xmlSAX2ResolveEntity: @ctx: the user data (XML parser context) @publicId: The public ID of the entity @systemId: The system ID of the entity
The entity loader, to control the loading of external entities, the application can either:
Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
Definition at line 519 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2SetDocumentLocator | ( | void *ctx | ATTRIBUTE_UNUSED, |
xmlSAXLocatorPtr loc | ATTRIBUTE_UNUSED | ||
) |
xmlSAX2SetDocumentLocator: @ctx: the user data (XML parser context) @loc: A SAX Locator
Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case.
Definition at line 967 of file SAX2.c.
Referenced by xmlSAXVersion().
xmlSAX2StartDocument: @ctx: the user data (XML parser context)
called when the document start being processed.
Definition at line 983 of file SAX2.c.
Referenced by xmlSAXVersion().
void 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: @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.
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.
Definition at line 2210 of file SAX2.c.
Referenced by xmlSAXVersion().
|
static |
Definition at line 1857 of file SAX2.c.
Referenced by xmlSAX2AttributeNs(), and xmlSAX2Characters().
void xmlSAX2UnparsedEntityDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | publicId, | ||
const xmlChar * | systemId, | ||
const xmlChar * | notationName | ||
) |
Definition at line 899 of file SAX2.c.
Referenced by xmlSAXVersion().
int xmlSAXVersion | ( | xmlSAXHandler * | hdlr, |
int | version | ||
) |
xmlSAXVersion: @hdlr: the SAX handler
Initialize the default XML SAX handler according to the version
Returns 0 in case of success and -1 in case of error.
Definition at line 2868 of file SAX2.c.
Referenced by xmlDefaultSAXHandlerInit(), xmlInitParserCtxt(), and xmlSAX2InitDefaultSAXHandler().
|
static |
Definition at line 2831 of file SAX2.c.
Referenced by xmlSAX2InitDefaultSAXHandler().