|
ReactOS 0.4.16-dev-2207-geb15453
|
#include <libxml/xmlversion.h>#include <libxml/xmlerror.h>#include <libxml/tree.h>#include <libxml/list.h>#include <libxml/xmlautomata.h>#include <libxml/xmlregexp.h>

Go to the source code of this file.
Classes | |
| struct | _xmlValidCtxt |
Macros | |
| #define | XML_TREE_INTERNALS |
Typedefs | |
| typedef struct _xmlValidState | xmlValidState |
| typedef xmlValidState * | xmlValidStatePtr |
| typedef void(* | xmlValidityErrorFunc) (void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2 |
| typedef void(*) typedef void(* | xmlValidityWarningFunc) (void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2 |
| typedef typedeftypedef void(*) typedef void(*) struct _xmlValidCtx | xmlValidCtxt) |
| typedef xmlValidCtxt * | xmlValidCtxtPtr |
| typedef struct _xmlHashTable | xmlNotationTable |
| typedef xmlNotationTable * | xmlNotationTablePtr |
| typedef struct _xmlHashTable | xmlElementTable |
| typedef xmlElementTable * | xmlElementTablePtr |
| typedef struct _xmlHashTable | xmlAttributeTable |
| typedef xmlAttributeTable * | xmlAttributeTablePtr |
| typedef struct _xmlHashTable | xmlIDTable |
| typedef xmlIDTable * | xmlIDTablePtr |
| typedef struct _xmlHashTable | xmlRefTable |
| typedef xmlRefTable * | xmlRefTablePtr |
| typedef struct _xmlHashTable xmlAttributeTable |
| typedef xmlAttributeTable* xmlAttributeTablePtr |
| typedef struct _xmlHashTable xmlElementTable |
| typedef xmlElementTable* xmlElementTablePtr |
| typedef struct _xmlHashTable xmlIDTable |
| typedef xmlIDTable* xmlIDTablePtr |
| typedef struct _xmlHashTable xmlNotationTable |
| typedef xmlNotationTable* xmlNotationTablePtr |
| typedef struct _xmlHashTable xmlRefTable |
| typedef xmlRefTable* xmlRefTablePtr |
| typedef xmlValidCtxt* xmlValidCtxtPtr |
xmlValidityErrorFunc: @ctx: usually an xmlValidCtxtPtr to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user. @msg: the string to format *printf like vararg ...: remaining arguments to the format
Callback called when a validity error is found. This is a message oriented function similar to an *printf function.
| typedef void(*) typedef void(* xmlValidityWarningFunc) (void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2 |
xmlValidityWarningFunc: @ctx: usually an xmlValidCtxtPtr to a validity error context, but comes from ctxt->userData (which normally contains such a pointer); ctxt->userData can be changed by the user. @msg: the string to format *printf like vararg ...: remaining arguments to the format
Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.
| typedef struct _xmlValidState xmlValidState |
| typedef xmlValidState* xmlValidStatePtr |
| XMLPUBFUN 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 1812 of file valid.c.
Referenced by xmlSAX2AttributeDecl().
| XMLPUBFUN xmlElementPtr xmlAddElementDecl | ( | xmlValidCtxtPtr | ctxt, |
| xmlDtdPtr | dtd, | ||
| const xmlChar * | name, | ||
| xmlElementTypeVal | type, | ||
| xmlElementContentPtr | content | ||
| ) |
Definition at line 1263 of file valid.c.
Referenced by xmlSAX2ElementDecl().
| XMLPUBFUN 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 2517 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
| XMLPUBFUN xmlNotationPtr xmlAddNotationDecl | ( | xmlValidCtxtPtr | ctxt, |
| xmlDtdPtr | dtd, | ||
| const xmlChar * | name, | ||
| const xmlChar * | PublicID, | ||
| const xmlChar * | SystemID | ||
| ) |
Definition at line 2239 of file valid.c.
Referenced by xmlSAX2NotationDecl().
| XML_DEPRECATED XMLPUBFUN 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
DEPRECATED, do not use. This function will be removed from the public API.
Register a new ref declaration
Returns NULL if not, otherwise the new xmlRefPtr
Definition at line 2848 of file valid.c.
Referenced by xmlSAX2AttributeNs().
| XMLPUBFUN 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 840 of file valid.c.
Referenced by xmlAddElementDecl(), xmlCopyDocElementContent(), and xmlCopyElementContent().
| XMLPUBFUN 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 1640 of file valid.c.
Referenced by xmlParseEnumerationType(), and xmlParseNotationType().
| XMLPUBFUN void xmlFreeAttributeTable | ( | xmlAttributeTablePtr | table | ) |
xmlFreeAttributeTable: @table: An attribute table
Deallocate the memory used by an entities hash table.
Definition at line 2038 of file valid.c.
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 934 of file valid.c.
Referenced by xmlFreeElement(), xmlFreeElementContent(), xmlParseElementChildrenContentDeclPriv(), xmlParseElementDecl(), and xmlParseElementMixedContentDecl().
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 1000 of file valid.c.
| XMLPUBFUN void xmlFreeElementTable | ( | xmlElementTablePtr | table | ) |
xmlFreeElementTable: @table: An element table
Deallocate the memory used by an element hash table.
Definition at line 1486 of file valid.c.
xmlFreeEnumeration: @cur: the tree to free.
free an enumeration attribute node (recursive).
Definition at line 1662 of file valid.c.
Referenced by xmlAddAttributeDecl(), xmlFreeAttribute(), xmlFreeEnumeration(), xmlParseAttributeListDecl(), xmlParseEnumerationType(), xmlParseNotationType(), and xmlSAX2AttributeDecl().
| XMLPUBFUN void xmlFreeIDTable | ( | xmlIDTablePtr | table | ) |
xmlFreeIDTable: @table: An id table
Deallocate the memory used by an ID hash table.
Definition at line 2601 of file valid.c.
Referenced by xsltReleaseRVT().
| XMLPUBFUN void xmlFreeNotationTable | ( | xmlNotationTablePtr | table | ) |
xmlFreeNotationTable: @table: An notation table
Deallocate the memory used by an entities hash table.
Definition at line 2316 of file valid.c.
| XML_DEPRECATED XMLPUBFUN void xmlFreeRefTable | ( | xmlRefTablePtr | table | ) |
xmlFreeRefTable: @table: An ref table
DEPRECATED, do not use. This function will be removed from the public API.
Deallocate the memory used by an Ref hash table.
Definition at line 2948 of file valid.c.
| XMLPUBFUN xmlAttributePtr xmlGetDtdAttrDesc | ( | xmlDtdPtr | dtd, |
| const xmlChar * | elem, | ||
| const xmlChar * | name | ||
| ) |
Definition at line 3230 of file valid.c.
Referenced by xmlIsID(), xmlIsRef(), xsltGetCNsProp(), and xsltGetNsProp().
Definition at line 3102 of file valid.c.
Referenced by xmlIsMixedElement().
| XMLPUBFUN xmlAttributePtr xmlGetDtdQAttrDesc | ( | xmlDtdPtr | dtd, |
| const xmlChar * | elem, | ||
| const xmlChar * | name, | ||
| const xmlChar * | prefix | ||
| ) |
| XMLPUBFUN xmlElementPtr xmlGetDtdQElementDesc | ( | xmlDtdPtr | dtd, |
| const xmlChar * | name, | ||
| const xmlChar * | prefix | ||
| ) |
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 2719 of file valid.c.
Referenced by xsltLoadStylesheetPI(), and xsltTestStepMatch().
| XML_DEPRECATED XMLPUBFUN xmlListPtr xmlGetRefs | ( | xmlDocPtr | doc, |
| const xmlChar * | ID | ||
| ) |
xmlGetRefs: @doc: pointer to the document @ID: the ID value
DEPRECATED, do not use. This function will be removed from the public API.
Find the set of references for the supplied ID.
Returns NULL if not found, otherwise node set for the ID.
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 2619 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
The public function calls related to validity checking.
Definition at line 3345 of file valid.c.
Referenced by areBlanks().
| XML_DEPRECATED XMLPUBFUN int xmlIsRef | ( | xmlDocPtr | doc, |
| xmlNodePtr | elem, | ||
| xmlAttrPtr | attr | ||
| ) |
xmlIsRef: @doc: the document @elem: the element carrying the attribute @attr: the attribute
DEPRECATED, do not use. This function will be removed from the public API.
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 2967 of file valid.c.
Referenced by xmlSAX2AttributeNs().
| XMLPUBFUN xmlElementContentPtr xmlNewDocElementContent | ( | xmlDocPtr | doc, |
| const xmlChar * | name, | ||
| xmlElementContentType | type | ||
| ) |
Definition at line 753 of file valid.c.
Referenced by xmlNewElementContent(), xmlParseElementChildrenContentDeclPriv(), and xmlParseElementMixedContentDecl().
| XMLPUBFUN xmlElementContentPtr xmlNewElementContent | ( | const xmlChar * | name, |
| xmlElementContentType | type | ||
| ) |
Definition at line 826 of file valid.c.
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 2680 of file valid.c.
| XML_DEPRECATED XMLPUBFUN int xmlRemoveRef | ( | xmlDocPtr | doc, |
| xmlAttrPtr | attr | ||
| ) |
xmlRemoveRef: @doc: the document @attr: the attribute
DEPRECATED, do not use. This function will be removed from the public API.
Remove the given attribute from the Ref table maintained internally.
Returns -1 if the lookup failed and 0 otherwise
Definition at line 3009 of file valid.c.
| XMLPUBFUN 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 1130 of file valid.c.
Referenced by xmlSnprintfElementContent().