ReactOS 0.4.16-dev-321-g63bb46a
|
#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>
Go to the source code of this file.
Macros | |
#define | IN_LIBXML |
#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.nosp@m.rd@c.nosp@m.ogsci.nosp@m..ed..nosp@m.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 54 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
xmlNsWarnMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an error string
Handle a namespace warning
Definition at line 92 of file SAX2.c.
xmlDefaultSAXHandlerInit:
DEPRECATED: This function will be made private. Call xmlInitParser to initialize the library.
Initialize the default SAX2 handler
Definition at line 2934 of file SAX2.c.
Referenced by xmlInitParser().
void xmlSAX2AttributeDecl | ( | void * | ctx, |
const xmlChar * | elem, | ||
const xmlChar * | fullname, | ||
int | type, | ||
int | def, | ||
const xmlChar * | defaultValue, | ||
xmlEnumerationPtr | tree | ||
) |
Definition at line 674 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 1967 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 2816 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 2657 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 2754 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2ElementDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
int | type, | ||
xmlElementContentPtr | content | ||
) |
Definition at line 746 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 998 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 information for the element.
Definition at line 2448 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 604 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 362 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 259 of file SAX2.c.
Referenced by xmlInitializeGlobalState().
xmlEntityPtr xmlSAX2GetEntity | ( | void * | ctx, |
const xmlChar * | name | ||
) |
Definition at line 526 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 243 of file SAX2.c.
Referenced by xmlInitializeGlobalState().
xmlEntityPtr xmlSAX2GetParameterEntity | ( | void * | ctx, |
const xmlChar * | name | ||
) |
Definition at line 576 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 227 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 307 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 291 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2IgnorableWhitespace | ( | void *ctx | ATTRIBUTE_UNUSED, |
const xmlChar *ch | ATTRIBUTE_UNUSED, | ||
int len | ATTRIBUTE_UNUSED | ||
) |
xmlSAX2IgnorableWhitespace: @ctx: the user data (XML parser context) @ch: a xmlChar string @len: the number of xmlChar
receiving some ignorable whitespaces from the parser. UNUSED: by default the DOM building will use xmlSAX2Characters
Definition at line 2672 of file SAX2.c.
void xmlSAX2InitDefaultSAXHandler | ( | xmlSAXHandler * | hdlr, |
int | warning | ||
) |
xmlSAX2InitDefaultSAXHandler: @hdlr: the SAX handler
Initialize the default XML SAX2 handler
Definition at line 2913 of file SAX2.c.
void xmlSAX2InternalSubset | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | ExternalID, | ||
const xmlChar * | SystemID | ||
) |
Definition at line 324 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 275 of file SAX2.c.
Referenced by xmlSAXVersion().
void xmlSAX2NotationDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | publicId, | ||
const xmlChar * | systemId | ||
) |
Definition at line 795 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 2690 of file SAX2.c.
Referenced by xmlSAXVersion().
Definition at line 2488 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 489 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 917 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 933 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 information for the element, as well as the new namespace declarations on the element.
Definition at line 2195 of file SAX2.c.
Referenced by xmlSAXVersion().
|
static |
xmlSAX2Text: @ctx: the user data (XML parser context) @ch: a xmlChar string @len: the number of xmlChar @type: text or cdata
Append characters.
Definition at line 2521 of file SAX2.c.
Referenced by xmlSAX2CDataBlock(), and xmlSAX2Characters().
|
static |
Definition at line 1844 of file SAX2.c.
Referenced by xmlSAX2AttributeNs(), and xmlSAX2Text().
void xmlSAX2UnparsedEntityDecl | ( | void * | ctx, |
const xmlChar * | name, | ||
const xmlChar * | publicId, | ||
const xmlChar * | systemId, | ||
const xmlChar * | notationName | ||
) |
Definition at line 849 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 2858 of file SAX2.c.
Referenced by xmlDefaultSAXHandlerInit(), xmlInitParserCtxt(), and xmlSAX2InitDefaultSAXHandler().
|
static |
Definition at line 2821 of file SAX2.c.
Referenced by xmlSAX2InitDefaultSAXHandler().