ReactOS
0.4.15-dev-4874-g57c84dd
|
#include "libxml.h"
#include <string.h>
#include <stdlib.h>
#include <libxml/xmlmemory.h>
#include <libxml/hash.h>
#include <libxml/uri.h>
#include <libxml/valid.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/xmlerror.h>
#include <libxml/list.h>
#include <libxml/globals.h>
#include "elfgcchack.h"
Go to the source code of this file.
Classes | |
struct | xmlRemoveMemo_t |
struct | xmlValidateMemo_t |
Macros | |
#define | IN_LIBXML |
#define | TODO |
: the element name | |
xmlIsMixedElement: @doc: the document Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs returns 0 if no, 1 if yes, and -1 if no element description is available | |
#define | bottom_valid |
static xmlElementPtr | xmlGetDtdElementDesc2 (xmlDtdPtr dtd, const xmlChar *name, int create) |
xmlElementPtr | xmlGetDtdElementDesc (xmlDtdPtr dtd, const xmlChar *name) |
xmlElementPtr | xmlGetDtdQElementDesc (xmlDtdPtr dtd, const xmlChar *name, const xmlChar *prefix) |
int | xmlIsMixedElement (xmlDocPtr doc, const xmlChar *name) |
DICT_FREE: @str: a string
Free a string if it is not owned by the "dict" dictionary in the current scope
#define TODO |
typedef struct xmlRemoveMemo_t xmlRemoveMemo |
typedef xmlRemoveMemo* xmlRemoveMemoPtr |
typedef struct xmlValidateMemo_t xmlValidateMemo |
typedef xmlValidateMemo* xmlValidateMemoPtr |
|
static |
xmlErrValid: @ctxt: an XML validation parser context @error: the error number @extra: extra information
Handle a validation error
Definition at line 96 of file valid.c.
xmlAttributePtr xmlAddAttributeDecl | ( | xmlValidCtxtPtr | ctxt, |
xmlDtdPtr | dtd, | ||
const xmlChar * | elem, | ||
const xmlChar * | name, | ||
const xmlChar * | ns, | ||
xmlAttributeType | type, | ||
xmlAttributeDefault | def, | ||
const xmlChar * | defaultValue, | ||
xmlEnumerationPtr | tree | ||
) |
Definition at line 1981 of file valid.c.
Referenced by xmlSAX2AttributeDecl().
xmlElementPtr xmlAddElementDecl | ( | xmlValidCtxtPtr | ctxt, |
xmlDtdPtr | dtd, | ||
const xmlChar * | name, | ||
xmlElementTypeVal | type, | ||
xmlElementContentPtr | content | ||
) |
Definition at line 1430 of file valid.c.
Referenced by xmlSAX2ElementDecl().
xmlIDPtr xmlAddID | ( | xmlValidCtxtPtr | ctxt, |
xmlDocPtr | doc, | ||
const xmlChar * | value, | ||
xmlAttrPtr | attr | ||
) |
xmlAddID: @ctxt: the validation context @doc: pointer to the document @value: the value name @attr: the attribute holding the ID
Register a new id declaration
Returns NULL if not, otherwise the new xmlIDPtr
Definition at line 2645 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
xmlNotationPtr xmlAddNotationDecl | ( | xmlValidCtxtPtr | ctxt, |
xmlDtdPtr | dtd, | ||
const xmlChar * | name, | ||
const xmlChar * | PublicID, | ||
const xmlChar * | SystemID | ||
) |
Definition at line 2408 of file valid.c.
Referenced by xmlSAX2NotationDecl().
xmlRefPtr xmlAddRef | ( | xmlValidCtxtPtr | ctxt, |
xmlDocPtr | doc, | ||
const xmlChar * | value, | ||
xmlAttrPtr | attr | ||
) |
xmlAddRef: @ctxt: the validation context @doc: pointer to the document @value: the value name @attr: the attribute holding the Ref
Register a new ref declaration
Returns NULL if not, otherwise the new xmlRefPtr
Definition at line 2973 of file valid.c.
Referenced by xmlSAX2AttributeNs().
xmlElementContentPtr xmlCopyDocElementContent | ( | xmlDocPtr | doc, |
xmlElementContentPtr | cur | ||
) |
xmlCopyDocElementContent: @doc: the document owning the element declaration @cur: An element content pointer.
Build a copy of an element content description.
Returns the new xmlElementContentPtr or NULL in case of error.
Definition at line 1008 of file valid.c.
Referenced by xmlAddElementDecl(), and xmlCopyElementContent().
xmlElementContentPtr xmlCopyElementContent | ( | xmlElementContentPtr | cur | ) |
xmlCopyElementContent: @cur: An element content pointer.
Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead
Returns the new xmlElementContentPtr or NULL in case of error.
Definition at line 1089 of file valid.c.
xmlEnumerationPtr xmlCreateEnumeration | ( | const xmlChar * | name | ) |
Definition at line 1809 of file valid.c.
Referenced by xmlParseEnumerationType(), and xmlParseNotationType().
|
static |
xmlDummyCompare @data0: Value supplied by the user @data1: Value supplied by the user
Do nothing, return 0. Used to create unordered lists.
Definition at line 2955 of file valid.c.
Referenced by xmlAddRef().
|
static |
xmlFreeAttribute: @elem: An attribute
Deallocate the memory used by an attribute definition
Definition at line 1928 of file valid.c.
Referenced by xmlAddAttributeDecl(), and xmlFreeAttributeTableEntry().
void xmlFreeAttributeTable | ( | xmlAttributeTablePtr | table | ) |
xmlFreeAttributeTable: @table: An attribute table
Deallocate the memory used by an entities hash table.
Definition at line 2207 of file valid.c.
Definition at line 2196 of file valid.c.
Referenced by xmlFreeAttributeTable().
void xmlFreeDocElementContent | ( | xmlDocPtr | doc, |
xmlElementContentPtr | cur | ||
) |
xmlFreeDocElementContent: @doc: the document owning the element declaration @cur: the element content tree to free
Free an element content structure. The whole subtree is removed.
Definition at line 1101 of file valid.c.
Referenced by xmlFreeElement(), xmlFreeElementContent(), xmlParseElementChildrenContentDeclPriv(), xmlParseElementDecl(), and xmlParseElementMixedContentDecl().
|
static |
xmlFreeElement: @elem: An element
Deallocate the memory used by an element definition
Definition at line 1401 of file valid.c.
Referenced by xmlAddElementDecl(), and xmlFreeElementTableEntry().
void xmlFreeElementContent | ( | xmlElementContentPtr | cur | ) |
xmlFreeElementContent: @cur: the element content tree to free
Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead
Definition at line 1167 of file valid.c.
void xmlFreeElementTable | ( | xmlElementTablePtr | table | ) |
xmlFreeElementTable: @table: An element table
Deallocate the memory used by an element hash table.
Definition at line 1655 of file valid.c.
Definition at line 1644 of file valid.c.
Referenced by xmlFreeElementTable().
void xmlFreeEnumeration | ( | xmlEnumerationPtr | cur | ) |
xmlFreeEnumeration: @cur: the tree to free.
free an enumeration attribute node (recursive).
Definition at line 1831 of file valid.c.
Referenced by attributeDeclDebug(), xmlAddAttributeDecl(), xmlFreeAttribute(), xmlParseAttributeListDecl(), xmlParseEnumerationType(), xmlParseNotationType(), and xmlSAX2AttributeDecl().
xmlFreeID: @not: A id
Deallocate the memory used by an id definition
Definition at line 2617 of file valid.c.
Referenced by xmlAddID(), and xmlFreeIDTableEntry().
void xmlFreeIDTable | ( | xmlIDTablePtr | table | ) |
xmlFreeIDTable: @table: An id table
Deallocate the memory used by an ID hash table.
Definition at line 2729 of file valid.c.
Referenced by xsltReleaseRVT().
Definition at line 2718 of file valid.c.
Referenced by xmlFreeIDTable(), and xmlRemoveID().
|
static |
xmlFreeNotation: @not: A notation
Deallocate the memory used by an notation definition
Definition at line 2383 of file valid.c.
Referenced by xmlAddNotationDecl(), and xmlFreeNotationTableEntry().
void xmlFreeNotationTable | ( | xmlNotationTablePtr | table | ) |
xmlFreeNotationTable: @table: An notation table
Deallocate the memory used by an entities hash table.
Definition at line 2485 of file valid.c.
Definition at line 2474 of file valid.c.
Referenced by xmlFreeNotationTable().
|
static |
xmlFreeRef: @lk: A list link
Deallocate the memory used by a ref definition
Definition at line 2903 of file valid.c.
Referenced by xmlAddRef().
void xmlFreeRefTable | ( | xmlRefTablePtr | table | ) |
xmlFreeRefTable: @table: An ref table
Deallocate the memory used by an Ref hash table.
Definition at line 3071 of file valid.c.
Referenced by xsltReleaseRVT().
xmlFreeRefTableEntry: @list_ref: A list of references.
Deallocate the memory used by a list of references
Definition at line 2920 of file valid.c.
Referenced by xmlFreeRefTable(), and xmlRemoveRef().
Definition at line 3341 of file valid.c.
Referenced by xmlIsID(), xmlIsRef(), xsltGetCNsProp(), and xsltGetNsProp().
xmlElementPtr xmlGetDtdElementDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | name | ||
) |
Definition at line 3219 of file valid.c.
Referenced by xmlIsMixedElement().
|
static |
Definition at line 3249 of file valid.c.
Referenced by xmlAddAttributeDecl().
xmlNotationPtr xmlGetDtdNotationDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | name | ||
) |
Definition at line 3400 of file valid.c.
xmlAttributePtr xmlGetDtdQAttrDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | elem, | ||
const xmlChar * | name, | ||
const xmlChar * | prefix | ||
) |
Definition at line 3378 of file valid.c.
Definition at line 3317 of file valid.c.
xmlAttrPtr xmlGetID | ( | xmlDocPtr | doc, |
const xmlChar * | ID | ||
) |
xmlGetID: @doc: pointer to the document @ID: the ID value
Search the attribute declaring the given ID
Returns NULL if not found, otherwise the xmlAttrPtr defining the ID
Definition at line 2846 of file valid.c.
Referenced by xsltLoadStylesheetPI(), and xsltTestCompMatch().
xmlListPtr xmlGetRefs | ( | xmlDocPtr | doc, |
const xmlChar * | ID | ||
) |
xmlGetRefs: @doc: pointer to the document @ID: the ID value
Find the set of references for the supplied ID.
Returns NULL if not found, otherwise node set for the ID.
Definition at line 3184 of file valid.c.
int xmlIsID | ( | xmlDocPtr | doc, |
xmlNodePtr | elem, | ||
xmlAttrPtr | attr | ||
) |
xmlIsID: @doc: the document @elem: the element carrying the attribute @attr: the attribute
Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically.
Returns 0 or 1 depending on the lookup result
Definition at line 2747 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
The public function calls related to validity checking.
Definition at line 3456 of file valid.c.
Referenced by areBlanks().
int xmlIsRef | ( | xmlDocPtr | doc, |
xmlNodePtr | elem, | ||
xmlAttrPtr | attr | ||
) |
xmlIsRef: @doc: the document @elem: the element carrying the attribute @attr: the attribute
Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase).
Returns 0 or 1 depending on the lookup result
Definition at line 3088 of file valid.c.
Referenced by xmlSAX2AttributeNs().
xmlElementContentPtr xmlNewDocElementContent | ( | xmlDocPtr | doc, |
const xmlChar * | name, | ||
xmlElementContentType | type | ||
) |
Definition at line 921 of file valid.c.
Referenced by xmlNewElementContent(), xmlParseElementChildrenContentDeclPriv(), and xmlParseElementMixedContentDecl().
xmlElementContentPtr xmlNewElementContent | ( | const xmlChar * | name, |
xmlElementContentType | type | ||
) |
Definition at line 994 of file valid.c.
int xmlRemoveID | ( | xmlDocPtr | doc, |
xmlAttrPtr | attr | ||
) |
xmlRemoveID: @doc: the document @attr: the attribute
Remove the given attribute from the ID table maintained internally.
Returns -1 if the lookup failed and 0 otherwise
Definition at line 2808 of file valid.c.
int xmlRemoveRef | ( | xmlDocPtr | doc, |
xmlAttrPtr | attr | ||
) |
xmlRemoveRef: @doc: the document @attr: the attribute
Remove the given attribute from the Ref table maintained internally.
Returns -1 if the lookup failed and 0 otherwise
Definition at line 3128 of file valid.c.
void xmlSnprintfElementContent | ( | char * | buf, |
int | size, | ||
xmlElementContentPtr | content, | ||
int | englob | ||
) |
xmlSnprintfElementContent: @buf: an output buffer @size: the buffer size @content: An element table @englob: 1 if one must print the englobing parenthesis, 0 otherwise
This will dump the content of the element content definition Intended just for the debug routine
Definition at line 1297 of file valid.c.
|
static |
xmlVErrMemory: @ctxt: an XML validation parser context @extra: extra information
Handle an out of memory error
Definition at line 58 of file valid.c.
Referenced by xmlAddAttributeDecl(), xmlAddElementDecl(), xmlAddID(), xmlAddNotationDecl(), xmlAddRef(), xmlCopyDocElementContent(), xmlCreateEnumeration(), xmlGetDtdElementDesc2(), and xmlNewDocElementContent().
xmlWalkRemoveRef: @data: Contents of current link @user: Value supplied by the user
Returns 0 to abort the walk or 1 to continue
Definition at line 2934 of file valid.c.
Referenced by xmlRemoveRef().