ReactOS 0.4.16-dev-38-g96c65e9
|
#include "libxml.h"
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
#include <ctype.h>
#include <libxml/xmlmemory.h>
#include <libxml/threads.h>
#include <libxml/globals.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/encoding.h>
#include <libxml/xmlIO.h>
#include <libxml/uri.h>
#include "buf.h"
#include "enc.h"
Go to the source code of this file.
Classes | |
struct | _xmlStartTag |
struct | _xmlDefAttrs |
Typedefs | |
typedef struct _xmlDefAttrs | xmlDefAttrs |
typedef xmlDefAttrs * | xmlDefAttrsPtr |
Variables | |
unsigned int | xmlParserMaxDepth = 256 |
static const char *const | xmlW3CPIs [] |
DICT_FREE: @str: a string
Free a string if it is not owned by the "dict" dictionary in the current scope
#define GROW |
xmlParseAttValueInternal: @ctxt: an XML parser context @len: attribute len result @alloc: whether the attribute was reallocated as a new string @normalize: if 1 then further non-CDATA normalization must be done
parse a value for an attribute. NOTE: if no normalization is needed, the routine will return pointers directly from the data buffer.
3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows:
Returns the AttValue parsed or NULL. The value has to be freed by the caller if it was copied, this can be detected by val[*len] == 0.
#define NEXT xmlNextChar(ctxt) |
#define NEXT1 |
#define SHRINK |
#define SKIP_BLANKS xmlSkipBlankChars(ctxt) |
#define XML_PARSER_CHUNK_SIZE 100 |
XML_PARSER_CHUNK_SIZE
When calling GROW that's the minimal amount of data the parser expected to have received. It is not a hard limit but an optimization when reading strings like Names It is not strictly needed as long as inputs available characters are followed by 0, which should be provided by the I/O level
typedef struct _xmlDefAttrs xmlDefAttrs |
typedef xmlDefAttrs* xmlDefAttrsPtr |
|
static |
areBlanks: @ctxt: an XML parser context @str: a xmlChar * @len: the size of @str @blank_chars: we know the chars are blanks
Is this a sequence of blank chars that one can ignore ?
Returns 1 if ignorable 0 otherwise.
Definition at line 2864 of file parser.c.
Referenced by xmlParseCharData(), and xmlParseCharDataComplex().
xmlParserInputPtr inputPop | ( | xmlParserCtxtPtr | ctxt | ) |
inputPop: @ctxt: an XML parser context
Pops the top parser input from the input stack
Returns the input just removed
Definition at line 1774 of file parser.c.
Referenced by xmlCtxtReset(), xmlFreeParserCtxt(), xmlHaltParser(), xmlInitParserCtxt(), xmlPopInput(), and xmlPushInput().
int inputPush | ( | xmlParserCtxtPtr | ctxt, |
xmlParserInputPtr | value | ||
) |
inputPush: @ctxt: an XML parser context @value: the parser input
Pushes a new parser input on top of the input stack
Returns -1 in case of error, the index in the stack otherwise
Definition at line 1745 of file parser.c.
Referenced by testSAX(), xmlCreateEntityParserCtxtInternal(), xmlCreateIOParserCtxt(), xmlCreateMemoryParserCtxt(), xmlCreateURLParserCtxt(), xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), xmlCtxtResetPush(), xmlPushInput(), xmlReadFd(), xmlReadIO(), and xsltDocDefaultLoaderFunc().
|
static |
xmlFatalErrMsg: @ctxt: an XML parser context @error: the error number @msg: the error message
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlWarningMsg: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: extra data @str2: extra data
Handle a warning.
xmlValidityError: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: extra data
Handle a validity error.
xmlFatalErrMsgInt: @ctxt: an XML parser context @error: the error number @msg: the error message @val: an integer value
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlFatalErrMsgStrIntStr: @ctxt: an XML parser context @error: the error number @msg: the error message @str1: an string info @val: an integer value @str2: an string info
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlFatalErrMsgStr: @ctxt: an XML parser context @error: the error number @msg: the error message @val: a string value
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlErrMsgStr: @ctxt: an XML parser context @error: the error number @msg: the error message @val: a string value
Handle a non fatal parser error
xmlNsErr: @ctxt: an XML parser context @error: the error number @msg: the message @info1: extra information string @info2: extra information string
Handle a fatal parser error, i.e. violating Well-Formedness constraints
xmlNsWarn @ctxt: an XML parser context @error: the error number @msg: the message @info1: extra information string @info2: extra information string
Handle a namespace warning error
Definition at line 593 of file parser.c.
|
static |
nameNsPush: @ctxt: an XML parser context @value: the element name @prefix: the element prefix @URI: the element namespace name the current line number for error messages @nsNr: the number of namespaces pushed on the namespace table
Pushes a new element name/prefix/URL on top of the name stack
Returns -1 in case of error, the index in the stack otherwise
Definition at line 1870 of file parser.c.
Referenced by xmlParseElementStart().
const xmlChar * namePop | ( | xmlParserCtxtPtr | ctxt | ) |
namePop: @ctxt: an XML parser context
Pops the top element name from the name stack
Returns the name just removed
Definition at line 1981 of file parser.c.
Referenced by xmlParseElementEnd(), and xmlParseElementStart().
int namePush | ( | xmlParserCtxtPtr | ctxt, |
const xmlChar * | value | ||
) |
namePush: @ctxt: an XML parser context @value: the element name
Pushes a new element name on top of the name stack
Returns -1 in case of error, the index in the stack otherwise
xmlNodePtr nodePop | ( | xmlParserCtxtPtr | ctxt | ) |
nodePop: @ctxt: an XML parser context
Pops the top element node from the node stack
Returns the node just removed
Definition at line 1839 of file parser.c.
Referenced by xmlParseElementStart(), and xmlSAX2EndElementNs().
int nodePush | ( | xmlParserCtxtPtr | ctxt, |
xmlNodePtr | value | ||
) |
nodePush: @ctxt: an XML parser context @value: the element node
Pushes a new element node on top of the node stack
Returns -1 in case of error, the index in the stack otherwise
Definition at line 1801 of file parser.c.
Referenced by xmlParseBalancedChunkMemoryInternal(), xmlParseExternalEntityPrivate(), xmlParseInNodeContext(), and xmlSAX2StartElementNs().
|
static |
nsPop: @ctxt: an XML parser context @nr: the number to pop
Pops the top @nr parser prefix/namespace from the ns stack
Returns the number of namespaces removed
Definition at line 1681 of file parser.c.
Referenced by xmlParseElementStart(), xmlParseEndTag2(), and xmlParseInNodeContext().
nsPush: @ctxt: an XML parser context @prefix: the namespace prefix or NULL @URL: the namespace name
Pushes a new parser namespace on top of the ns stack
Returns -1 in case of error, -2 if the namespace should be discarded and the index in the stack otherwise.
Definition at line 1631 of file parser.c.
Referenced by xmlParseBalancedChunkMemoryInternal(), xmlParseInNodeContext(), and xmlParseStartTag2().
|
static |
Definition at line 2016 of file parser.c.
Referenced by xmlParseElementStart(), and xmlParseEndTag2().
|
static |
|
static |
xmlAddDefAttrs: @ctxt: an XML parser context @fullname: the element fullname @fullattr: the attribute fullname @value: the attribute value
Add a defaulted attribute for an element
Definition at line 1242 of file parser.c.
Referenced by xmlParseAttributeListDecl().
|
static |
xmlAddSpecialAttr: @ctxt: an XML parser context @fullname: the element fullname @fullattr: the attribute fullname @type: the attribute type
Register this attribute type
Definition at line 1353 of file parser.c.
Referenced by xmlParseAttributeListDecl().
xmlAttrNormalizeSpace: @src: the source string @dst: the target string
Normalize the space in non CDATA attribute values: If the attribute type is not CDATA, then the XML processor MUST further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. Note that the size of dst need to be at least src, and if one doesn't need to preserve dst (and it doesn't come from a dictionary or read-only) then passing src as dst is just fine.
Returns a pointer to the normalized value (dst) or NULL if no conversion is needed.
Definition at line 1152 of file parser.c.
Referenced by xmlAttrNormalizeSpace2(), and xmlParseAttributeListDecl().
|
static |
xmlAttrNormalizeSpace2: @src: the source string
Normalize the space in non CDATA attribute values, a slightly more complex front end to avoid allocation problems when running on attribute values coming from the input.
Returns a pointer to the normalized value (dst) or NULL if no conversion is needed.
Definition at line 1185 of file parser.c.
Referenced by xmlParseAttribute2().
xmlCheckLanguageID: @lang: pointer to the string value
Checks that the value conforms to the LanguageID production:
NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition.
[33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+
The current REC reference the successors of RFC 1766, currently 5646
http://www.rfc-editor.org/rfc/rfc5646.txt langtag = language ["-" script] ["-" region] *("-" variant) *("-" extension) ["-" privateuse] language = 2*3ALPHA ; shortest ISO 639 code ["-" extlang] ; sometimes followed by ; extended language subtags / 4ALPHA ; or reserved for future use / 5*8ALPHA ; or registered language subtag
extlang = 3ALPHA ; selected ISO 639 codes *2("-" 3ALPHA) ; permanently reserved
script = 4ALPHA ; ISO 15924 code
region = 2ALPHA ; ISO 3166-1 code / 3DIGIT ; UN M.49 code
variant = 5*8alphanum ; registered variants / (DIGIT 3alphanum)
extension = singleton 1*("-" (2*8alphanum))
; Single alphanumerics ; "x" reserved for private use
singleton = DIGIT ; 0 - 9 / x41-57 ; A - W / x59-5A ; Y - Z / x61-77 ; a - w / x79-7A ; y - z
it sounds right to still allow Irregular i-xxx IANA and user codes too The parser below doesn't try to cope with extension or privateuse that could be added but that's not interoperable anyway
Returns 1 if correct 0 otherwise
Definition at line 1474 of file parser.c.
Referenced by xmlParseAttribute2().
|
static |
xmlCleanSpecialAttr: @ctxt: an XML parser context
Trim the list of attributes defined to remove all those of type CDATA as they are not special. This call should be done when finishing to parse the DTD and before starting to parse the document root.
Definition at line 1401 of file parser.c.
Referenced by xmlParseDocument().
|
static |
xmlCleanSpecialAttrCallback:
Removes CDATA attributes from the special attribute table
Definition at line 1382 of file parser.c.
Referenced by xmlCleanSpecialAttr().
xmlCleanupParser:
This function name is somewhat misleading. It does not clean up parser state, it cleans up memory allocated by the library itself. It is a cleanup function for the XML library. It tries to reclaim all related global memory allocated for the library processing. It doesn't deallocate any document related memory. One should call xmlCleanupParser() only when the process has finished using the library and all XML/HTML documents built with it. See also xmlInitParser() which has the opposite function of preparing the library for operations.
WARNING: if your application is multithreaded or has plugin support calling this may crash the application if another thread or a plugin is still using libxml2. It's sometimes very hard to guess if libxml2 is in use in the application, some libraries or plugins may use it without notice. In case of doubt abstain from calling this function or do it just before calling exit() to avoid leak reports from valgrind !
Definition at line 14739 of file parser.c.
Referenced by DllMain(), main(), and xmlInitParser().
xmlParserCtxtPtr xmlCreateDocParserCtxt | ( | const xmlChar * | cur | ) |
xmlCreateDocParserCtxt: @cur: a pointer to an array of xmlChar
Creates a parser context for an XML in-memory document.
Returns the new parser context or NULL
Definition at line 14542 of file parser.c.
Referenced by xmlReadDoc().
xmlParserCtxtPtr xmlCreateEntityParserCtxt | ( | const xmlChar * | URL, |
const xmlChar * | ID, | ||
const xmlChar * | base | ||
) |
xmlCreateEntityParserCtxt: @URL: the entity URL @ID: the entity PUBLIC ID @base: a possible base for the target URI
Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
Returns the new parser context or NULL
Definition at line 14027 of file parser.c.
|
static |
xmlCreateEntityParserCtxtInternal: @URL: the entity URL @ID: the entity PUBLIC ID @base: a possible base for the target URI @pctx: parser context used to set options on new context
Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
Returns the new parser context or NULL
Definition at line 13954 of file parser.c.
Referenced by xmlCreateEntityParserCtxt(), and xmlParseExternalEntityPrivate().
xmlParserCtxtPtr xmlCreateFileParserCtxt | ( | const char * | filename | ) |
xmlCreateFileParserCtxt: @filename: the filename
Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time.
Returns the new parser context or NULL
Definition at line 14093 of file parser.c.
xmlParserCtxtPtr xmlCreateIOParserCtxt | ( | xmlSAXHandlerPtr | sax, |
void * | user_data, | ||
xmlInputReadCallback | ioread, | ||
xmlInputCloseCallback | ioclose, | ||
void * | ioctx, | ||
xmlCharEncoding | enc | ||
) |
xmlCreateIOParserCtxt: @sax: a SAX handler @user_data: The user data returned on SAX callbacks @ioread: an I/O read function @ioclose: an I/O close function @ioctx: an I/O handler @enc: the charset encoding if known
Create a parser context for using the XML parser with an existing I/O stream
Returns the new parser context or NULL
Definition at line 12605 of file parser.c.
xmlParserCtxtPtr xmlCreateMemoryParserCtxt | ( | const char * | buffer, |
int | size | ||
) |
xmlCreateMemoryParserCtxt: @buffer: a pointer to a char array @size: the size of the array
Create a parser context for an XML in-memory document.
Returns the new parser context or NULL
Definition at line 14339 of file parser.c.
Referenced by xmlCreateDocParserCtxt(), xmlParseBalancedChunkMemoryInternal(), xmlParseInNodeContext(), and xmlReadMemory().
xmlParserCtxtPtr xmlCreateURLParserCtxt | ( | const char * | filename, |
int | options | ||
) |
xmlCreateURLParserCtxt: @filename: the filename or URL @options: a combination of xmlParserOption
Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses
Returns the new parser context or NULL
Definition at line 14051 of file parser.c.
Referenced by xmlCreateFileParserCtxt(), and xmlReadFile().
|
static |
Definition at line 1702 of file parser.c.
Referenced by xmlParseStartTag2().
xmlDocPtr xmlCtxtReadDoc | ( | xmlParserCtxtPtr | ctxt, |
const xmlChar * | cur, | ||
const char * | URL, | ||
const char * | encoding, | ||
int | options | ||
) |
xmlCtxtReadDoc: @ctxt: an XML parser context @cur: a pointer to a zero terminated string @URL: the base URL to use for the document @encoding: the document encoding, or NULL @options: a combination of xmlParserOption
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
Returns the resulting document tree
Definition at line 15368 of file parser.c.
xmlDocPtr xmlCtxtReadFd | ( | xmlParserCtxtPtr | ctxt, |
int | fd, | ||
const char * | URL, | ||
const char * | encoding, | ||
int | options | ||
) |
xmlCtxtReadFd: @ctxt: an XML parser context @fd: an open file descriptor @URL: the base URL to use for the document @encoding: the document encoding, or NULL @options: a combination of xmlParserOption
parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset.
Returns the resulting document tree
Definition at line 15471 of file parser.c.
xmlDocPtr xmlCtxtReadFile | ( | xmlParserCtxtPtr | ctxt, |
const char * | filename, | ||
const char * | encoding, | ||
int | options | ||
) |
xmlCtxtReadFile: @ctxt: an XML parser context @filename: a file or URL @encoding: the document encoding, or NULL @options: a combination of xmlParserOption
parse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context
Returns the resulting document tree
Definition at line 15390 of file parser.c.
Referenced by parseAndPrintFile().
xmlDocPtr xmlCtxtReadIO | ( | xmlParserCtxtPtr | ctxt, |
xmlInputReadCallback | ioread, | ||
xmlInputCloseCallback | ioclose, | ||
void * | ioctx, | ||
const char * | URL, | ||
const char * | encoding, | ||
int | options | ||
) |
xmlCtxtReadIO: @ctxt: an XML parser context @ioread: an I/O read function @ioclose: an I/O close function @ioctx: an I/O handler @URL: the base URL to use for the document @encoding: the document encoding, or NULL @options: a combination of xmlParserOption
parse an XML document from I/O functions and source and build a tree. This reuses the existing @ctxt parser context
Returns the resulting document tree
Definition at line 15515 of file parser.c.
Referenced by parseAndPrintFile().
xmlDocPtr xmlCtxtReadMemory | ( | xmlParserCtxtPtr | ctxt, |
const char * | buffer, | ||
int | size, | ||
const char * | URL, | ||
const char * | encoding, | ||
int | options | ||
) |
xmlCtxtReadMemory: @ctxt: an XML parser context @buffer: a pointer to a char array @size: the size of the array @URL: the base URL to use for the document @encoding: the document encoding, or NULL @options: a combination of xmlParserOption
parse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context
Returns the resulting document tree
Definition at line 15426 of file parser.c.
Referenced by parseAndPrintFile(), and xmlCtxtReadDoc().
void xmlCtxtReset | ( | xmlParserCtxtPtr | ctxt | ) |
xmlCtxtReset: @ctxt: an XML parser context
Reset a parser context
Definition at line 14801 of file parser.c.
Referenced by xmlClearParserCtxt(), xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), and xmlCtxtResetPush().
int xmlCtxtResetPush | ( | xmlParserCtxtPtr | ctxt, |
const char * | chunk, | ||
int | size, | ||
const char * | filename, | ||
const char * | encoding | ||
) |
xmlCtxtResetPush: @ctxt: an XML parser context @chunk: a pointer to an array of chars @size: number of chars in the array @filename: an optional file name or URI @encoding: the document encoding, or NULL
Reset a push parser context
Returns 0 in case of success and 1 in case of error
Definition at line 14907 of file parser.c.
int xmlCtxtUseOptions | ( | xmlParserCtxtPtr | ctxt, |
int | options | ||
) |
xmlCtxtUseOptions: @ctxt: an XML parser context @options: a combination of xmlParserOption
Applies the options to the parser context
Returns 0 in case of success, the set of unknown or unimplemented options in case of error.
Definition at line 15141 of file parser.c.
Referenced by parseAndPrintFile(), and xsltDocDefaultLoaderFunc().
|
static |
xmlCtxtUseOptionsInternal: @ctxt: an XML parser context @options: a combination of xmlParserOption @encoding: the user provided encoding to use
Applies the options to the parser context
Returns 0 in case of success, the set of unknown or unimplemented options in case of error.
Definition at line 15000 of file parser.c.
Referenced by xmlCreateURLParserCtxt(), xmlCtxtUseOptions(), xmlDoRead(), and xmlParseInNodeContext().
|
static |
xmlDetectSAX2: @ctxt: an XML parser context
Do the SAX2 detection and specific initialization
Definition at line 1094 of file parser.c.
Referenced by xmlParseBalancedChunkMemoryInternal(), xmlParseDocument(), xmlParseExternalEntityPrivate(), xmlParseExternalSubset(), xmlParseExtParsedEnt(), and xmlParseInNodeContext().
|
static |
xmlDoRead: @ctxt: an XML parser context @URL: the base URL to use for the document @encoding: the document encoding, or NULL @options: a combination of xmlParserOption @reuse: keep the context for reuse
Common front-end for the xmlRead functions
Returns the resulting document tree or NULL
Definition at line 15159 of file parser.c.
Referenced by xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), xmlReadDoc(), xmlReadFd(), xmlReadFile(), xmlReadIO(), and xmlReadMemory().
|
static |
xmlErrAttributeDup: @ctxt: an XML parser context @prefix: the attribute prefix @localname: the attribute localname
Handle a redefinition of attribute error
Definition at line 342 of file parser.c.
Referenced by xmlParseStartTag2().
|
static |
xmlFatalErr: @ctxt: an XML parser context @error: the error number @extra: extra information string
Handle a fatal parser error, i.e. violating Well-Formedness constraints
Definition at line 378 of file parser.c.
Referenced by xmlGROW(), xmlLoadEntityContent(), xmlParseAttValueComplex(), xmlParseAttValueInternal(), xmlParseBalancedChunkMemoryInternal(), xmlParseCDSect(), xmlParseCharData(), xmlParseCharDataComplex(), xmlParseCharRef(), xmlParseCommentComplex(), xmlParseConditionalSections(), xmlParseContentInternal(), xmlParseDocTypeDecl(), xmlParseDocument(), xmlParseElementChildrenContentDeclPriv(), xmlParseElementDecl(), xmlParseElementMixedContentDecl(), xmlParseEncName(), xmlParseEncodingDecl(), xmlParseEndTag2(), xmlParseEntityDecl(), xmlParseEntityRef(), xmlParseEntityValue(), xmlParseEnumerationType(), xmlParseExternalEntityPrivate(), xmlParseExternalID(), xmlParseExternalSubset(), xmlParseExtParsedEnt(), xmlParseInNodeContext(), xmlParseInternalSubset(), xmlParseName(), xmlParseNameComplex(), xmlParseNCName(), xmlParseNCNameComplex(), xmlParseNmtoken(), xmlParseNotationDecl(), xmlParseNotationType(), xmlParsePEReference(), xmlParsePI(), xmlParsePITarget(), xmlParsePubidLiteral(), xmlParseReference(), xmlParserEntityCheck(), xmlParserHandlePEReference(), xmlParseSDDecl(), xmlParseStartTag2(), xmlParseStringCharRef(), xmlParseStringEntityRef(), xmlParseStringName(), xmlParseStringPEReference(), xmlParseSystemLiteral(), xmlParseTextDecl(), xmlParseVersionInfo(), xmlParseXMLDecl(), xmlPopInput(), xmlPushInput(), and xmlStringLenDecodeEntities().
Referenced by xmlInitParser().
|
static |
Definition at line 8760 of file parser.c.
Referenced by xmlParseInNodeContext(), and xmlParseStartTag2().
|
static |
Definition at line 2121 of file parser.c.
|
static |
xmlHaltParser: @ctxt: an XML parser context
Blocks further parser processing don't override error for internal use
Definition at line 12549 of file parser.c.
Referenced by nodePush(), xmlGROW(), xmlParseConditionalSections(), xmlParseContentInternal(), xmlParseElementStart(), xmlParseEntityDecl(), xmlParseExternalSubset(), xmlParseReference(), and xmlStopParser().
int xmlHasFeature | ( | xmlFeature | feature | ) |
xmlHasFeature: @feature: the feature to be examined
Examines if the library has been compiled with a given feature.
Returns a non-zero value if the feature exist, otherwise zero. Returns zero (0) if the feature does not exist or an unknown unknown feature is requested, non-zero otherwise.
Definition at line 874 of file parser.c.
Referenced by showVersion().
xmlInitParser:
Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs.
Definition at line 14676 of file parser.c.
Referenced by DllMain(), xmlCheckVersion(), xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), xmlInitParserCtxt(), xmlParseDocument(), xmlReadDoc(), xmlReadFd(), xmlReadFile(), xmlReadIO(), and xmlReadMemory().
|
static |
Definition at line 3161 of file parser.c.
Referenced by xmlParseNCNameComplex(), xmlParseNmtoken(), and xmlParseStringName().
|
static |
Definition at line 3130 of file parser.c.
Referenced by xmlParseNCNameComplex(), and xmlParseStringName().
|
static |
xmlLoadEntityContent: @ctxt: an XML parser context @entity: an unloaded system entity
Load the original content of the given system entity from the ExternalID/SystemID given. This is to be used for Included in Literal http://www.w3.org/TR/REC-xml/#inliteral processing of entities references
Returns 0 in case of success and -1 in case of failure
Definition at line 8060 of file parser.c.
Referenced by xmlStringLenDecodeEntities().
|
static |
xmlParseAttribute2: @ctxt: an XML parser context @pref: the element prefix @elem: the element name @prefix: a xmlChar ** used to store the value of the attribute prefix @value: a xmlChar ** used to store the value of the attribute @len: an int * to save the length of the attribute @alloc: an int * to indicate if the attribute was allocated
parse an attribute in the new SAX2 framework.
Returns the attribute name, and the value in *value, .
Definition at line 9125 of file parser.c.
Referenced by xmlParseStartTag2().
void xmlParseAttributeListDecl | ( | xmlParserCtxtPtr | ctxt | ) |
xmlParseAttributeListDecl: @ctxt: an XML parser context
: parse the Attribute list def for an element
[52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'
[53] AttDef ::= S Name S AttType S DefaultDecl
Definition at line 5976 of file parser.c.