ReactOS 0.4.16-dev-306-g647d351
|
#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 |
Typedefs | |
typedef struct _xmlValidState | xmlValidState |
typedef xmlValidState * | xmlValidStatePtr |
typedef void(XMLCDECL * | xmlValidityErrorFunc) (void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2 |
typedef void(XMLCDECL *) typedef void(XMLCDECL * | xmlValidityWarningFunc) (void *ctx, const char *msg,...) LIBXML_ATTR_FORMAT(2 |
typedef typedeftypedef void(XMLCDECL *) typedef void(XMLCDECL *) 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(XMLCDECL *) typedef void(XMLCDECL * 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 XMLCALL 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 1967 of file valid.c.
Referenced by xmlSAX2AttributeDecl().
XMLPUBFUN xmlElementPtr XMLCALL xmlAddElementDecl | ( | xmlValidCtxtPtr | ctxt, |
xmlDtdPtr | dtd, | ||
const xmlChar * | name, | ||
xmlElementTypeVal | type, | ||
xmlElementContentPtr | content | ||
) |
Definition at line 1418 of file valid.c.
Referenced by xmlSAX2ElementDecl().
XMLPUBFUN xmlIDPtr XMLCALL 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 2672 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
XMLPUBFUN xmlNotationPtr XMLCALL xmlAddNotationDecl | ( | xmlValidCtxtPtr | ctxt, |
xmlDtdPtr | dtd, | ||
const xmlChar * | name, | ||
const xmlChar * | PublicID, | ||
const xmlChar * | SystemID | ||
) |
Definition at line 2394 of file valid.c.
Referenced by xmlSAX2NotationDecl().
XML_DEPRECATED XMLPUBFUN xmlRefPtr XMLCALL 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 3003 of file valid.c.
Referenced by xmlSAX2AttributeNs().
XMLPUBFUN xmlElementContentPtr XMLCALL 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 995 of file valid.c.
Referenced by xmlAddElementDecl(), xmlCopyDocElementContent(), and xmlCopyElementContent().
XMLPUBFUN xmlElementContentPtr XMLCALL 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.
XMLPUBFUN xmlEnumerationPtr XMLCALL xmlCreateEnumeration | ( | const xmlChar * | name | ) |
Definition at line 1795 of file valid.c.
Referenced by xmlParseEnumerationType(), and xmlParseNotationType().
XMLPUBFUN void XMLCALL xmlFreeAttributeTable | ( | xmlAttributeTablePtr | table | ) |
xmlFreeAttributeTable: @table: An attribute table
Deallocate the memory used by an entities hash table.
Definition at line 2193 of file valid.c.
XMLPUBFUN void XMLCALL 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 1089 of file valid.c.
Referenced by xmlFreeElement(), xmlFreeElementContent(), xmlParseElementChildrenContentDeclPriv(), xmlParseElementDecl(), and xmlParseElementMixedContentDecl().
XMLPUBFUN void XMLCALL 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 1155 of file valid.c.
XMLPUBFUN void XMLCALL xmlFreeElementTable | ( | xmlElementTablePtr | table | ) |
xmlFreeElementTable: @table: An element table
Deallocate the memory used by an element hash table.
Definition at line 1641 of file valid.c.
XMLPUBFUN void XMLCALL xmlFreeEnumeration | ( | xmlEnumerationPtr | cur | ) |
xmlFreeEnumeration: @cur: the tree to free.
free an enumeration attribute node (recursive).
Definition at line 1817 of file valid.c.
Referenced by attributeDeclDebug(), xmlAddAttributeDecl(), xmlFreeAttribute(), xmlFreeEnumeration(), xmlParseAttributeListDecl(), xmlParseEnumerationType(), xmlParseNotationType(), and xmlSAX2AttributeDecl().
XMLPUBFUN void XMLCALL xmlFreeIDTable | ( | xmlIDTablePtr | table | ) |
xmlFreeIDTable: @table: An id table
Deallocate the memory used by an ID hash table.
Definition at line 2756 of file valid.c.
Referenced by xsltReleaseRVT().
XMLPUBFUN void XMLCALL xmlFreeNotationTable | ( | xmlNotationTablePtr | table | ) |
xmlFreeNotationTable: @table: An notation table
Deallocate the memory used by an entities hash table.
Definition at line 2471 of file valid.c.
XML_DEPRECATED XMLPUBFUN void XMLCALL 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 3103 of file valid.c.
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdAttrDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | elem, | ||
const xmlChar * | name | ||
) |
Definition at line 3379 of file valid.c.
Referenced by xmlIsID(), xmlIsRef(), xsltGetCNsProp(), and xsltGetNsProp().
Definition at line 3257 of file valid.c.
Referenced by xmlIsMixedElement().
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdQAttrDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | elem, | ||
const xmlChar * | name, | ||
const xmlChar * | prefix | ||
) |
XMLPUBFUN xmlElementPtr XMLCALL 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 2874 of file valid.c.
Referenced by xsltLoadStylesheetPI(), and xsltTestStepMatch().
XML_DEPRECATED XMLPUBFUN xmlListPtr XMLCALL 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.
XMLPUBFUN int XMLCALL 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 2774 of file valid.c.
Referenced by xmlSAX2AttributeNs(), xsltAttribute(), and xsltAttrListTemplateProcess().
The public function calls related to validity checking.
Definition at line 3494 of file valid.c.
Referenced by areBlanks().
XML_DEPRECATED XMLPUBFUN int XMLCALL 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 3122 of file valid.c.
Referenced by xmlSAX2AttributeNs().
XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewDocElementContent | ( | xmlDocPtr | doc, |
const xmlChar * | name, | ||
xmlElementContentType | type | ||
) |
Definition at line 908 of file valid.c.
Referenced by xmlNewElementContent(), xmlParseElementChildrenContentDeclPriv(), and xmlParseElementMixedContentDecl().
XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewElementContent | ( | const xmlChar * | name, |
xmlElementContentType | type | ||
) |
Definition at line 981 of file valid.c.
XMLPUBFUN int XMLCALL 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 2835 of file valid.c.
XML_DEPRECATED XMLPUBFUN int XMLCALL 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 3164 of file valid.c.
XMLPUBFUN void XMLCALL 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 1285 of file valid.c.
Referenced by xmlSnprintfElementContent().