Back to Turicreate

Module valid from libxml2

deps/src/libxml2-2.9.1/doc/html/libxml-valid.html

6.4.155.9 KB
Original Source

| |

|

|

|

Module valid from libxml2

|

|

|

|

|

|

| API Menu | |

|

| API Indexes | |

|

| Related links | |

|

|

|

|

|

|

| | uri | | API documentation | | The XML C parser and toolkit of Gnome | xinclude | |

API for the DTD handling and the validity checking

Table of Contents

#define[XML\_CTXT\_FINISH\_DTD\_0](#XML_CTXT_FINISH_DTD_0)
#define[XML\_CTXT\_FINISH\_DTD\_1](#XML_CTXT_FINISH_DTD_1)
Structure[xmlAttributeTable](#xmlAttributeTable)
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef[xmlAttributeTable](libxml-valid.html#xmlAttributeTable)*xmlAttributeTablePtr
Structure[xmlElementTable](#xmlElementTable)
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef[xmlElementTable](libxml-valid.html#xmlElementTable)*xmlElementTablePtr
Structure[xmlIDTable](#xmlIDTable)
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef[xmlIDTable](libxml-valid.html#xmlIDTable)*xmlIDTablePtr
Structure[xmlNotationTable](#xmlNotationTable)
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef[xmlNotationTable](libxml-valid.html#xmlNotationTable)*xmlNotationTablePtr
Structure[xmlRefTable](#xmlRefTable)
struct _xmlHashTable
The content of this structure is not made public by the API.
Typedef[xmlRefTable](libxml-valid.html#xmlRefTable)*xmlRefTablePtr
Structure[xmlValidCtxt](#xmlValidCtxt)
struct _xmlValidCtxt
Typedef[xmlValidCtxt](libxml-valid.html#xmlValidCtxt)*xmlValidCtxtPtr
Structure[xmlValidState](#xmlValidState)
struct _xmlValidState
The content of this structure is not made public by the API.
Typedef[xmlValidState](libxml-valid.html#xmlValidState)*xmlValidStatePtr
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)[xmlAddAttributeDecl](#xmlAddAttributeDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ns,
[xmlAttributeType](libxml-tree.html#xmlAttributeType)type,
[xmlAttributeDefault](libxml-tree.html#xmlAttributeDefault)def,
const[xmlChar](libxml-xmlstring.html#xmlChar)* defaultValue,
[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)tree)
[xmlElementPtr](libxml-tree.html#xmlElementPtr)[xmlAddElementDecl](#xmlAddElementDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementTypeVal](libxml-tree.html#xmlElementTypeVal)type,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content)
[xmlIDPtr](libxml-tree.html#xmlIDPtr)[xmlAddID](#xmlAddID)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)[xmlAddNotationDecl](#xmlAddNotationDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* PublicID,
const[xmlChar](libxml-xmlstring.html#xmlChar)* SystemID)
[xmlRefPtr](libxml-tree.html#xmlRefPtr)[xmlAddRef](#xmlAddRef)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
[xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)[xmlCopyAttributeTable](#xmlCopyAttributeTable)([xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)[xmlCopyDocElementContent](#xmlCopyDocElementContent)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)[xmlCopyElementContent](#xmlCopyElementContent)([xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)
[xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)[xmlCopyElementTable](#xmlCopyElementTable)([xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)
[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)[xmlCopyEnumeration](#xmlCopyEnumeration)([xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)cur)
[xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)[xmlCopyNotationTable](#xmlCopyNotationTable)([xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)
[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)[xmlCreateEnumeration](#xmlCreateEnumeration)(const[xmlChar](libxml-xmlstring.html#xmlChar)* name)
void[xmlDumpAttributeDecl](#xmlDumpAttributeDecl)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)attr)
void[xmlDumpAttributeTable](#xmlDumpAttributeTable)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)
void[xmlDumpElementDecl](#xmlDumpElementDecl)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)
void[xmlDumpElementTable](#xmlDumpElementTable)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)
void[xmlDumpNotationDecl](#xmlDumpNotationDecl)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)nota)
void[xmlDumpNotationTable](#xmlDumpNotationTable)([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)
void[xmlFreeAttributeTable](#xmlFreeAttributeTable)([xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)
void[xmlFreeDocElementContent](#xmlFreeDocElementContent)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)
void[xmlFreeElementContent](#xmlFreeElementContent)([xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)
void[xmlFreeElementTable](#xmlFreeElementTable)([xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)
void[xmlFreeEnumeration](#xmlFreeEnumeration)([xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)cur)
void[xmlFreeIDTable](#xmlFreeIDTable)([xmlIDTablePtr](libxml-valid.html#xmlIDTablePtr)table)
void[xmlFreeNotationTable](#xmlFreeNotationTable)([xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)
void[xmlFreeRefTable](#xmlFreeRefTable)([xmlRefTablePtr](libxml-valid.html#xmlRefTablePtr)table)
void[xmlFreeValidCtxt](#xmlFreeValidCtxt)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)cur)
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)[xmlGetDtdAttrDesc](#xmlGetDtdAttrDesc)([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)
[xmlElementPtr](libxml-tree.html#xmlElementPtr)[xmlGetDtdElementDesc](#xmlGetDtdElementDesc)([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)[xmlGetDtdNotationDesc](#xmlGetDtdNotationDesc)([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)[xmlGetDtdQAttrDesc](#xmlGetDtdQAttrDesc)([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix)
[xmlElementPtr](libxml-tree.html#xmlElementPtr)[xmlGetDtdQElementDesc](#xmlGetDtdQElementDesc)([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix)
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)[xmlGetID](#xmlGetID)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ID)
[xmlListPtr](libxml-list.html#xmlListPtr)[xmlGetRefs](#xmlGetRefs)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ID)
int[xmlIsID](#xmlIsID)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
int[xmlIsMixedElement](#xmlIsMixedElement)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)
int[xmlIsRef](#xmlIsRef)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)[xmlNewDocElementContent](#xmlNewDocElementContent)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementContentType](libxml-tree.html#xmlElementContentType)type)
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)[xmlNewElementContent](#xmlNewElementContent)(const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementContentType](libxml-tree.html#xmlElementContentType)type)
[xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)[xmlNewValidCtxt](#xmlNewValidCtxt)(void)
int[xmlRemoveID](#xmlRemoveID)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
int[xmlRemoveRef](#xmlRemoveRef)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)
void[xmlSnprintfElementContent](#xmlSnprintfElementContent)(char * buf,
int size,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content,
int englob)
void[xmlSprintfElementContent](#xmlSprintfElementContent)(char * buf,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content,
int englob)
int[xmlValidBuildContentModel](#xmlValidBuildContentModel)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)
[xmlChar](libxml-xmlstring.html#xmlChar)*[xmlValidCtxtNormalizeAttributeValue](#xmlValidCtxtNormalizeAttributeValue)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidGetPotentialChildren](#xmlValidGetPotentialChildren)([xmlElementContent](libxml-tree.html#xmlElementContent)* ctree,
const[xmlChar](libxml-xmlstring.html#xmlChar)** names,
int * len,
int max)
int[xmlValidGetValidElements](#xmlValidGetValidElements)([xmlNode](libxml-tree.html#xmlNode)* prev,
[xmlNode](libxml-tree.html#xmlNode)* next,
const[xmlChar](libxml-xmlstring.html#xmlChar)** names,
int max)
[xmlChar](libxml-xmlstring.html#xmlChar)*[xmlValidNormalizeAttributeValue](#xmlValidNormalizeAttributeValue)([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateAttributeDecl](#xmlValidateAttributeDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)attr)
int[xmlValidateAttributeValue](#xmlValidateAttributeValue)([xmlAttributeType](libxml-tree.html#xmlAttributeType)type,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateDocument](#xmlValidateDocument)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)
int[xmlValidateDocumentFinal](#xmlValidateDocumentFinal)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)
int[xmlValidateDtd](#xmlValidateDtd)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd)
int[xmlValidateDtdFinal](#xmlValidateDtdFinal)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)
int[xmlValidateElement](#xmlValidateElement)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem)
int[xmlValidateElementDecl](#xmlValidateElementDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)
int[xmlValidateNameValue](#xmlValidateNameValue)(const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateNamesValue](#xmlValidateNamesValue)(const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateNmtokenValue](#xmlValidateNmtokenValue)(const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateNmtokensValue](#xmlValidateNmtokensValue)(const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateNotationDecl](#xmlValidateNotationDecl)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)nota)
int[xmlValidateNotationUse](#xmlValidateNotationUse)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* notationName)
int[xmlValidateOneAttribute](#xmlValidateOneAttribute)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidateOneElement](#xmlValidateOneElement)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem)
int[xmlValidateOneNamespace](#xmlValidateOneNamespace)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix,
[xmlNsPtr](libxml-tree.html#xmlNsPtr)ns,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)
int[xmlValidatePopElement](#xmlValidatePopElement)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* qname)
int[xmlValidatePushCData](#xmlValidatePushCData)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
const[xmlChar](libxml-xmlstring.html#xmlChar)* data,
int len)
int[xmlValidatePushElement](#xmlValidatePushElement)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* qname)
int[xmlValidateRoot](#xmlValidateRoot)([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)
Function type:[xmlValidityErrorFunc](#xmlValidityErrorFunc)void[xmlValidityErrorFunc](#xmlValidityErrorFunc)(void * ctx,
const char * msg,
... ...)
Function type:[xmlValidityWarningFunc](#xmlValidityWarningFunc)void[xmlValidityWarningFunc](#xmlValidityWarningFunc)(void * ctx,
const char * msg,
... ...)

Description

Macro: XML_CTXT_FINISH_DTD_0

#define XML_CTXT_FINISH_DTD_0

Special value for finishDtd field when embedded in an xmlParserCtxt

Macro: XML_CTXT_FINISH_DTD_1

#define XML_CTXT_FINISH_DTD_1

Special value for finishDtd field when embedded in an xmlParserCtxt

Structure xmlAttributeTable

Structure xmlAttributeTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}

Structure xmlElementTable

Structure xmlElementTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}

Structure xmlIDTable

Structure xmlIDTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}

Structure xmlNotationTable

Structure xmlNotationTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}

Structure xmlRefTable

Structure xmlRefTable
struct _xmlHashTable {
The content of this structure is not made public by the API.
}

Structure xmlValidCtxt

Structure xmlValidCtxt
struct _xmlValidCtxt {
    void *	userData	: user specific data block[xmlValidityErrorFunc](libxml-valid.html#xmlValidityErrorFunc)error	: the callback in case of errors[xmlValidityWarningFunc](libxml-valid.html#xmlValidityWarningFunc)warning	: the callback in case of warning Node an[xmlNodePtr](libxml-tree.html#xmlNodePtr)node	: Current parsed Node
    int	nodeNr	: Depth of the parsing stack
    int	nodeMax	: Max depth of the parsing stack[xmlNodePtr](libxml-tree.html#xmlNodePtr)*	nodeTab	: array of nodes
    unsigned int	finishDtd	: finished validating the Dtd ?[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc	: the document
    int	valid	: temporary validity check result state s[xmlValidState](libxml-valid.html#xmlValidState)*	vstate	: current state
    int	vstateNr	: Depth of the validation stack
    int	vstateMax	: Max depth of the validation stack[xmlValidState](libxml-valid.html#xmlValidState)*	vstateTab	: array of validation states[xmlAutomataPtr](libxml-xmlautomata.html#xmlAutomataPtr)am	: the automata[xmlAutomataStatePtr](libxml-xmlautomata.html#xmlAutomataStatePtr)state	: used to build the automata
    void *	am
    void *	state
}

Structure xmlValidState

Structure xmlValidState
struct _xmlValidState {
The content of this structure is not made public by the API.
}

Function: xmlAddAttributeDecl

[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)xmlAddAttributeDecl	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ns,
[xmlAttributeType](libxml-tree.html#xmlAttributeType)type,
[xmlAttributeDefault](libxml-tree.html#xmlAttributeDefault)def,
const[xmlChar](libxml-xmlstring.html#xmlChar)* defaultValue,
[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)tree)

Register a new attribute declaration Note that @tree becomes the ownership of the DTD

| ctxt: | the validation context | | dtd: | pointer to the DTD | | elem: | the element name | | name: | the attribute name | | ns: | the attribute namespace prefix | | type: | the attribute type | | def: | the attribute default type | | defaultValue: | the attribute default value | | tree: | if it's an enumeration, the associated list | | Returns: | NULL if not new, otherwise the attribute decl |

Function: xmlAddElementDecl

[xmlElementPtr](libxml-tree.html#xmlElementPtr)xmlAddElementDecl	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementTypeVal](libxml-tree.html#xmlElementTypeVal)type,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content)

Register a new element declaration

| ctxt: | the validation context | | dtd: | pointer to the DTD | | name: | the entity name | | type: | the element type | | content: | the element content tree or NULL | | Returns: | NULL if not, otherwise the entity |

Function: xmlAddID

[xmlIDPtr](libxml-tree.html#xmlIDPtr)xmlAddID ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

Register a new id declaration

| ctxt: | the validation context | | doc: | pointer to the document | | value: | the value name | | attr: | the attribute holding the ID | | Returns: | NULL if not, otherwise the new xmlIDPtr |

Function: xmlAddNotationDecl

[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)xmlAddNotationDecl	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* PublicID,
const[xmlChar](libxml-xmlstring.html#xmlChar)* SystemID)

Register a new notation declaration

| ctxt: | the validation context | | dtd: | pointer to the DTD | | name: | the entity name | | PublicID: | the public identifier or NULL | | SystemID: | the system identifier or NULL | | Returns: | NULL if not, otherwise the entity |

Function: xmlAddRef

[xmlRefPtr](libxml-tree.html#xmlRefPtr)xmlAddRef ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

Register a new ref declaration

| ctxt: | the validation context | | doc: | pointer to the document | | value: | the value name | | attr: | the attribute holding the Ref | | Returns: | NULL if not, otherwise the new xmlRefPtr |

Function: xmlCopyAttributeTable

[xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)xmlCopyAttributeTable	([xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)

Build a copy of an attribute table.

| table: | An attribute table | | Returns: | the new xmlAttributeTablePtr or NULL in case of error. |

Function: xmlCopyDocElementContent

[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)xmlCopyDocElementContent	([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)

Build a copy of an element content description.

| doc: | the document owning the element declaration | | cur: | An element content pointer. | | Returns: | the new xmlElementContentPtr or NULL in case of error. |

Function: xmlCopyElementContent

[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)xmlCopyElementContent	([xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)

Build a copy of an element content description. Deprecated, use xmlCopyDocElementContent instead

| cur: | An element content pointer. | | Returns: | the new xmlElementContentPtr or NULL in case of error. |

Function: xmlCopyElementTable

[xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)xmlCopyElementTable	([xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)

Build a copy of an element table.

| table: | An element table | | Returns: | the new xmlElementTablePtr or NULL in case of error. |

Function: xmlCopyEnumeration

[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)xmlCopyEnumeration	([xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)cur)

Copy an enumeration attribute node (recursive).

| cur: | the tree to copy. | | Returns: | the xmlEnumerationPtr just created or NULL in case of error. |

Function: xmlCopyNotationTable

[xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)xmlCopyNotationTable	([xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)

Build a copy of a notation table.

| table: | A notation table | | Returns: | the new xmlNotationTablePtr or NULL in case of error. |

Function: xmlCreateEnumeration

[xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)xmlCreateEnumeration	(const[xmlChar](libxml-xmlstring.html#xmlChar)* name)

create and initialize an enumeration attribute node.

| name: | the enumeration name or NULL | | Returns: | the xmlEnumerationPtr just created or NULL in case of error. |

Function: xmlDumpAttributeDecl

void	xmlDumpAttributeDecl ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)attr)

This will dump the content of the attribute declaration as an XML DTD definition

| buf: | the XML buffer output | | attr: | An attribute declaration |

Function: xmlDumpAttributeTable

void	xmlDumpAttributeTable ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)

This will dump the content of the attribute table as an XML DTD definition

| buf: | the XML buffer output | | table: | An attribute table |

Function: xmlDumpElementDecl

void	xmlDumpElementDecl ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)

This will dump the content of the element declaration as an XML DTD definition

| buf: | the XML buffer output | | elem: | An element table |

Function: xmlDumpElementTable

void	xmlDumpElementTable ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)

This will dump the content of the element table as an XML DTD definition

| buf: | the XML buffer output | | table: | An element table |

Function: xmlDumpNotationDecl

void	xmlDumpNotationDecl ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)nota)

This will dump the content the notation declaration as an XML DTD definition

| buf: | the XML buffer output | | nota: | A notation declaration |

Function: xmlDumpNotationTable

void	xmlDumpNotationTable ([xmlBufferPtr](libxml-tree.html#xmlBufferPtr)buf,
[xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)

This will dump the content of the notation table as an XML DTD definition

| buf: | the XML buffer output | | table: | A notation table |

Function: xmlFreeAttributeTable

void	xmlFreeAttributeTable ([xmlAttributeTablePtr](libxml-valid.html#xmlAttributeTablePtr)table)

Deallocate the memory used by an entities hash table.

| table: | An attribute table |

Function: xmlFreeDocElementContent

void	xmlFreeDocElementContent	([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)

Free an element content structure. The whole subtree is removed.

| doc: | the document owning the element declaration | | cur: | the element content tree to free |

Function: xmlFreeElementContent

void	xmlFreeElementContent ([xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)cur)

Free an element content structure. The whole subtree is removed. Deprecated, use xmlFreeDocElementContent instead

| cur: | the element content tree to free |

Function: xmlFreeElementTable

void	xmlFreeElementTable ([xmlElementTablePtr](libxml-valid.html#xmlElementTablePtr)table)

Deallocate the memory used by an element hash table.

| table: | An element table |

Function: xmlFreeEnumeration

void	xmlFreeEnumeration ([xmlEnumerationPtr](libxml-tree.html#xmlEnumerationPtr)cur)

free an enumeration attribute node (recursive).

| cur: | the tree to free. |

Function: xmlFreeIDTable

void	xmlFreeIDTable ([xmlIDTablePtr](libxml-valid.html#xmlIDTablePtr)table)

Deallocate the memory used by an ID hash table.

| table: | An id table |

Function: xmlFreeNotationTable

void	xmlFreeNotationTable ([xmlNotationTablePtr](libxml-valid.html#xmlNotationTablePtr)table)

Deallocate the memory used by an entities hash table.

| table: | An notation table |

Function: xmlFreeRefTable

void	xmlFreeRefTable ([xmlRefTablePtr](libxml-valid.html#xmlRefTablePtr)table)

Deallocate the memory used by an Ref hash table.

| table: | An ref table |

Function: xmlFreeValidCtxt

void	xmlFreeValidCtxt ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)cur)

Free a validation context structure.

| cur: | the validation context to free |

Function: xmlGetDtdAttrDesc

[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)xmlGetDtdAttrDesc	([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)

Search the DTD for the description of this attribute on this element.

| dtd: | a pointer to the DtD to search | | elem: | the element name | | name: | the attribute name | | Returns: | the xmlAttributePtr if found or NULL |

Function: xmlGetDtdElementDesc

[xmlElementPtr](libxml-tree.html#xmlElementPtr)xmlGetDtdElementDesc	([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)

Search the DTD for the description of this element

| dtd: | a pointer to the DtD to search | | name: | the element name | | Returns: | the xmlElementPtr if found or NULL |

Function: xmlGetDtdNotationDesc

[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)xmlGetDtdNotationDesc	([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)

Search the DTD for the description of this notation

| dtd: | a pointer to the DtD to search | | name: | the notation name | | Returns: | the xmlNotationPtr if found or NULL |

Function: xmlGetDtdQAttrDesc

[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)xmlGetDtdQAttrDesc	([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix)

Search the DTD for the description of this qualified attribute on this element.

| dtd: | a pointer to the DtD to search | | elem: | the element name | | name: | the attribute name | | prefix: | the attribute namespace prefix | | Returns: | the xmlAttributePtr if found or NULL |

Function: xmlGetDtdQElementDesc

[xmlElementPtr](libxml-tree.html#xmlElementPtr)xmlGetDtdQElementDesc	([xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix)

Search the DTD for the description of this element

| dtd: | a pointer to the DtD to search | | name: | the element name | | prefix: | the element namespace prefix | | Returns: | the xmlElementPtr if found or NULL |

Function: xmlGetID

[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)xmlGetID ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ID)

Search the attribute declaring the given ID

| doc: | pointer to the document | | ID: | the ID value | | Returns: | NULL if not found, otherwise the xmlAttrPtr defining the ID |

Function: xmlGetRefs

[xmlListPtr](libxml-list.html#xmlListPtr)xmlGetRefs ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* ID)

Find the set of references for the supplied ID.

| doc: | pointer to the document | | ID: | the ID value | | Returns: | NULL if not found, otherwise node set for the ID. |

Function: xmlIsID

int	xmlIsID ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

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.

| doc: | the document | | elem: | the element carrying the attribute | | attr: | the attribute | | Returns: | 0 or 1 depending on the lookup result |

Function: xmlIsMixedElement

int	xmlIsMixedElement ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name)

Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs

| doc: | the document | | name: | the element name | | Returns: | 0 if no, 1 if yes, and -1 if no element description is available |

Function: xmlIsRef

int	xmlIsRef ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

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).

| doc: | the document | | elem: | the element carrying the attribute | | attr: | the attribute | | Returns: | 0 or 1 depending on the lookup result |

Function: xmlNewDocElementContent

[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)xmlNewDocElementContent	([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementContentType](libxml-tree.html#xmlElementContentType)type)

Allocate an element content structure for the document.

| doc: | the document | | name: | the subelement name or NULL | | type: | the type of element content decl | | Returns: | NULL if not, otherwise the new element content structure |

Function: xmlNewElementContent

[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)xmlNewElementContent	(const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
[xmlElementContentType](libxml-tree.html#xmlElementContentType)type)

Allocate an element content structure. Deprecated in favor of xmlNewDocElementContent

| name: | the subelement name or NULL | | type: | the type of element content decl | | Returns: | NULL if not, otherwise the new element content structure |

Function: xmlNewValidCtxt

[xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)xmlNewValidCtxt (void)

Allocate a validation context structure.

| Returns: | NULL if not, otherwise the new validation context structure |

Function: xmlRemoveID

int	xmlRemoveID ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

Remove the given attribute from the ID table maintained internally.

| doc: | the document | | attr: | the attribute | | Returns: | -1 if the lookup failed and 0 otherwise |

Function: xmlRemoveRef

int	xmlRemoveRef ([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr)

Remove the given attribute from the Ref table maintained internally.

| doc: | the document | | attr: | the attribute | | Returns: | -1 if the lookup failed and 0 otherwise |

Function: xmlSnprintfElementContent

void	xmlSnprintfElementContent	(char * buf,
int size,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content,
int englob)

This will dump the content of the element content definition Intended just for the debug routine

| buf: | an output buffer | | size: | the buffer size | | content: | An element table | | englob: | 1 if one must print the englobing parenthesis, 0 otherwise |

Function: xmlSprintfElementContent

void	xmlSprintfElementContent	(char * buf,
[xmlElementContentPtr](libxml-tree.html#xmlElementContentPtr)content,
int englob)

Deprecated, unsafe, use xmlSnprintfElementContent

| buf: | an output buffer | | content: | An element table | | englob: | 1 if one must print the englobing parenthesis, 0 otherwise |

Function: xmlValidBuildContentModel

int	xmlValidBuildContentModel	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)

(Re)Build the automata associated to the content model of this element

| ctxt: | a validation context | | elem: | an element declaration node | | Returns: | 1 in case of success, 0 in case of error |

Function: xmlValidCtxtNormalizeAttributeValue

[xmlChar](libxml-xmlstring.html#xmlChar)*	xmlValidCtxtNormalizeAttributeValue	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Does the validation related extra step of the normalization of attribute values: If the declared value 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 single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly

| ctxt: | the validation context or NULL | | doc: | the document | | elem: | the parent | | name: | the attribute name | | value: | the attribute value | | Returns: | a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value. |

Function: xmlValidGetPotentialChildren

int	xmlValidGetPotentialChildren	([xmlElementContent](libxml-tree.html#xmlElementContent)* ctree,
const[xmlChar](libxml-xmlstring.html#xmlChar)** names,
int * len,
int max)

Build/extend a list of potential children allowed by the content tree

| ctree: | an element content tree | | names: | an array to store the list of child names | | len: | a pointer to the number of element in the list | | max: | the size of the array | | Returns: | the number of element in the list, or -1 in case of error. |

Function: xmlValidGetValidElements

int	xmlValidGetValidElements	([xmlNode](libxml-tree.html#xmlNode)* prev,
[xmlNode](libxml-tree.html#xmlNode)* next,
const[xmlChar](libxml-xmlstring.html#xmlChar)** names,
int max)

This function returns the list of authorized children to insert within an existing tree while respecting the validity constraints forced by the Dtd. The insertion point is defined using @prev and @next in the following ways: to insert before 'node': xmlValidGetValidElements(node->prev, node, ... to insert next 'node': xmlValidGetValidElements(node, node->next, ... to replace 'node': xmlValidGetValidElements(node->prev, node->next, ... to prepend a child to 'node': xmlValidGetValidElements(NULL, node->childs, to append a child to 'node': xmlValidGetValidElements(node->last, NULL, ... pointers to the element names are inserted at the beginning of the array and do not need to be freed.

| prev: | an element to insert after | | next: | an element to insert next | | names: | an array to store the list of child names | | max: | the size of the array | | Returns: | the number of element in the list, or -1 in case of error. If the function returns the value @max the caller is invited to grow the receiving array and retry. |

Function: xmlValidNormalizeAttributeValue

[xmlChar](libxml-xmlstring.html#xmlChar)*	xmlValidNormalizeAttributeValue	([xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* name,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Does the validation related extra step of the normalization of attribute values: If the declared value 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 single space (#x20) character.

| doc: | the document | | elem: | the parent | | name: | the attribute name | | value: | the attribute value | | Returns: | a new normalized string if normalization is needed, NULL otherwise the caller must free the returned value. |

Function: xmlValidateAttributeDecl

int	xmlValidateAttributeDecl	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlAttributePtr](libxml-tree.html#xmlAttributePtr)attr)

Try to validate a single attribute definition basically it does the following checks as described by the XML-1.0 recommendation: - [VC: Attribute Default Legal] - [VC: Enumeration] - [VC: ID Attribute Default] The ID/IDREF uniqueness and matching are done separately

| ctxt: | the validation context | | doc: | a document instance | | attr: | an attribute definition | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateAttributeValue

int	xmlValidateAttributeValue	([xmlAttributeType](libxml-tree.html#xmlAttributeType)type,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Validate that the given attribute value match the proper production [VC: ID] Values of type ID must match the Name production.... [VC: IDREF] Values of type IDREF must match the Name production, and values of type IDREFS must match Names ... [VC: Entity Name] Values of type ENTITY must match the Name production, values of type ENTITIES must match Names ... [VC: Name Token] Values of type NMTOKEN must match the Nmtoken production; values of type NMTOKENS must match Nmtokens.

| type: | an attribute type | | value: | an attribute value | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateDocument

int	xmlValidateDocument ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)

Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree.

| ctxt: | the validation context | | doc: | a document instance | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateDocumentFinal

int	xmlValidateDocumentFinal	([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)

Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity

| ctxt: | the validation context | | doc: | a document instance | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateDtd

int	xmlValidateDtd ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlDtdPtr](libxml-tree.html#xmlDtdPtr)dtd)

Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present.

| ctxt: | the validation context | | doc: | a document instance | | dtd: | a dtd instance | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateDtdFinal

int	xmlValidateDtdFinal ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)

Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations.

| ctxt: | the validation context | | doc: | a document instance | | Returns: | 1 if valid or 0 if invalid and -1 if not well-formed |

Function: xmlValidateElement

int	xmlValidateElement ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem)

Try to validate the subtree under an element

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateElementDecl

int	xmlValidateElementDecl ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlElementPtr](libxml-tree.html#xmlElementPtr)elem)

Try to validate a single element definition basically it does the following checks as described by the XML-1.0 recommendation: - [VC: One ID per Element Type] - [VC: No Duplicate Types] - [VC: Unique Element Type Declaration]

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element definition | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNameValue

int	xmlValidateNameValue (const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Validate that the given value match Name production

| value: | an Name value | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNamesValue

int	xmlValidateNamesValue (const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Validate that the given value match Names production

| value: | an Names value | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNmtokenValue

int	xmlValidateNmtokenValue (const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Validate that the given value match Nmtoken production [VC: Name Token]

| value: | an Nmtoken value | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNmtokensValue

int	xmlValidateNmtokensValue	(const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Validate that the given value match Nmtokens production [VC: Name Token]

| value: | an Nmtokens value | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNotationDecl

int	xmlValidateNotationDecl ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNotationPtr](libxml-tree.html#xmlNotationPtr)nota)

Try to validate a single notation definition basically it does the following checks as described by the XML-1.0 recommendation: - it seems that no validity constraint exists on notation declarations But this function get called anyway ...

| ctxt: | the validation context | | doc: | a document instance | | nota: | a notation definition | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateNotationUse

int	xmlValidateNotationUse ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
const[xmlChar](libxml-xmlstring.html#xmlChar)* notationName)

Validate that the given name match a notation declaration. - [VC: Notation Declared]

| ctxt: | the validation context | | doc: | the document | | notationName: | the notation name to check | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateOneAttribute

int	xmlValidateOneAttribute ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
[xmlAttrPtr](libxml-tree.html#xmlAttrPtr)attr,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [VC: Attribute Value Type] - [VC: Fixed Attribute Default] - [VC: Entity Name] - [VC: Name Token] - [VC: ID] - [VC: IDREF] - [VC: Entity Name] - [VC: Notation Attributes] The ID/IDREF uniqueness and matching are done separately

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | attr: | an attribute instance | | value: | the attribute value (without entities processing) | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateOneElement

int	xmlValidateOneElement ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem)

Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [VC: Element Valid] - [VC: Required Attribute] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidateOneNamespace

int	xmlValidateOneNamespace ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* prefix,
[xmlNsPtr](libxml-tree.html#xmlNsPtr)ns,
const[xmlChar](libxml-xmlstring.html#xmlChar)* value)

Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [VC: Attribute Value Type] - [VC: Fixed Attribute Default] - [VC: Entity Name] - [VC: Name Token] - [VC: ID] - [VC: IDREF] - [VC: Entity Name] - [VC: Notation Attributes] The ID/IDREF uniqueness and matching are done separately

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | prefix: | the namespace prefix | | ns: | an namespace declaration instance | | value: | the attribute value (without entities processing) | | Returns: | 1 if valid or 0 otherwise |

Function: xmlValidatePopElement

int	xmlValidatePopElement ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* qname)

Pop the element end from the validation stack.

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | qname: | the qualified name as appearing in the serialization | | Returns: | 1 if no validation problem was found or 0 otherwise |

Function: xmlValidatePushCData

int	xmlValidatePushCData ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
const[xmlChar](libxml-xmlstring.html#xmlChar)* data,
int len)

check the CData parsed for validation in the current stack

| ctxt: | the validation context | | data: | some character data read | | len: | the length of the data | | Returns: | 1 if no validation problem was found or 0 otherwise |

Function: xmlValidatePushElement

int	xmlValidatePushElement ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc,
[xmlNodePtr](libxml-tree.html#xmlNodePtr)elem,
const[xmlChar](libxml-xmlstring.html#xmlChar)* qname)

Push a new element start on the validation stack.

| ctxt: | the validation context | | doc: | a document instance | | elem: | an element instance | | qname: | the qualified name as appearing in the serialization | | Returns: | 1 if no validation problem was found or 0 otherwise |

Function: xmlValidateRoot

int	xmlValidateRoot ([xmlValidCtxtPtr](libxml-valid.html#xmlValidCtxtPtr)ctxt,
[xmlDocPtr](libxml-tree.html#xmlDocPtr)doc)

Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [VC: Root Element Type] it doesn't try to recurse or apply other check to the element

| ctxt: | the validation context | | doc: | a document instance | | Returns: | 1 if valid or 0 otherwise |

Function type: xmlValidityErrorFunc

Function type: xmlValidityErrorFunc
void	xmlValidityErrorFunc (void * ctx,
const char * msg,
... ...)

Callback called when a validity error is found. This is a message oriented function similar to an *printf function.

| 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 |

Function type: xmlValidityWarningFunc

Function type: xmlValidityWarningFunc
void	xmlValidityWarningFunc (void * ctx,
const char * msg,
... ...)

Callback called when a validity warning is found. This is a message oriented function similar to an *printf function.

| 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 |

Daniel Veillard

|

|

|

|

|