ReactOS
0.4.15-dev-4610-g11e0ed3
|
#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 *) typede | void) (XMLCDECL *xmlValidityWarningFunc) (void *ctx |
typedef void(XMLCDECL *) typedef const char | msg) |
typedef void(XMLCDECL *) typedef const cha | LIBXML_ATTR_FORMAT) (2, 3) |
typedef struct _xmlValidCtxt | 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 |
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 _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 struct _xmlValidCtxt xmlValidCtxt |
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 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 1981 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 1430 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 2645 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 2408 of file valid.c.
Referenced by xmlSAX2NotationDecl().
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
Register a new ref declaration
Returns NULL if not, otherwise the new xmlRefPtr
Definition at line 2973 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 1008 of file valid.c.
Referenced by xmlAddElementDecl(), 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.
Definition at line 1089 of file valid.c.
XMLPUBFUN xmlEnumerationPtr XMLCALL xmlCreateEnumeration | ( | const xmlChar * | name | ) |
Definition at line 1809 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 2207 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 1101 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 1167 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 1655 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 1831 of file valid.c.
Referenced by attributeDeclDebug(), xmlAddAttributeDecl(), xmlFreeAttribute(), 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 2729 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 2485 of file valid.c.
XMLPUBFUN void XMLCALL 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().
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdAttrDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | elem, | ||
const xmlChar * | name | ||
) |
Definition at line 3341 of file valid.c.
Referenced by xmlIsID(), xmlIsRef(), xsltGetCNsProp(), and xsltGetNsProp().
Definition at line 3219 of file valid.c.
Referenced by xmlIsMixedElement().
Definition at line 3400 of file valid.c.
XMLPUBFUN xmlAttributePtr XMLCALL xmlGetDtdQAttrDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | elem, | ||
const xmlChar * | name, | ||
const xmlChar * | prefix | ||
) |
Definition at line 3378 of file valid.c.
XMLPUBFUN xmlElementPtr XMLCALL xmlGetDtdQElementDesc | ( | xmlDtdPtr | dtd, |
const xmlChar * | name, | ||
const xmlChar * | prefix | ||
) |
Definition at line 3317 of file valid.c.
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().
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.
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 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().
XMLPUBFUN int XMLCALL 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().
XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewDocElementContent | ( | xmlDocPtr | doc, |
const xmlChar * | name, | ||
xmlElementContentType | type | ||
) |
Definition at line 921 of file valid.c.
Referenced by xmlNewElementContent(), xmlParseElementChildrenContentDeclPriv(), and xmlParseElementMixedContentDecl().
XMLPUBFUN xmlElementContentPtr XMLCALL xmlNewElementContent | ( | const xmlChar * | name, |
xmlElementContentType | type | ||
) |
Definition at line 994 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 2808 of file valid.c.
XMLPUBFUN int XMLCALL 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.
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 1297 of file valid.c.