valid

Name

valid —

Synopsis



void        (*xmlValidityErrorFunc)         (void *ctx,
                                             const char *msg,
                                             ...);
void        (*xmlValidityWarningFunc)       (void *ctx,
                                             const char *msg,
                                             ...);
void        xmlParserValidityError          (void *ctx,
                                             const char *msg,
                                             ...);
void        xmlParserValidityWarning        (void *ctx,
                                             const char *msg,
                                             ...);
#define     XML_MIN_NOTATION_TABLE
typedef     xmlNotationTablePtr;
#define     XML_MIN_ELEMENT_TABLE
typedef     xmlElementTablePtr;
#define     XML_MIN_ATTRIBUTE_TABLE
typedef     xmlAttributeTablePtr;
xmlNotationPtr xmlAddNotationDecl           (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *name,
                                             const CHAR *PublicID,
                                             const CHAR *SystemID);
xmlNotationTablePtr xmlCopyNotationTable    (xmlNotationTablePtr table);
void        xmlFreeNotationTable            (xmlNotationTablePtr table);
void        xmlDumpNotationTable            (xmlBufferPtr buf,
                                             xmlNotationTablePtr table);
xmlElementContentPtr xmlNewElementContent   (CHAR *name,
                                             xmlElementContentType type);
xmlElementContentPtr xmlCopyElementContent  (xmlElementContentPtr content);
void        xmlFreeElementContent           (xmlElementContentPtr cur);
xmlElementPtr xmlAddElementDecl             (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *name,
                                             xmlElementContentType type,
                                             xmlElementContentPtr content);
xmlElementTablePtr xmlCopyElementTable      (xmlElementTablePtr table);
void        xmlFreeElementTable             (xmlElementTablePtr table);
void        xmlDumpElementTable             (xmlBufferPtr buf,
                                             xmlElementTablePtr table);
xmlEnumerationPtr xmlCreateEnumeration      (CHAR *name);
void        xmlFreeEnumeration              (xmlEnumerationPtr cur);
xmlEnumerationPtr xmlCopyEnumeration        (xmlEnumerationPtr cur);
xmlAttributePtr xmlAddAttributeDecl         (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *elem,
                                             const CHAR *name,
                                             xmlAttributeType type,
                                             xmlAttributeDefault def,
                                             const CHAR *defaultValue,
                                             xmlEnumerationPtr tree);
xmlAttributeTablePtr xmlCopyAttributeTable  (xmlAttributeTablePtr table);
void        xmlFreeAttributeTable           (xmlAttributeTablePtr table);
void        xmlDumpAttributeTable           (xmlBufferPtr buf,
                                             xmlAttributeTablePtr table);
int         xmlValidateRoot                 (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc);
int         xmlValidateElementDecl          (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlElementPtr elem);
int         xmlValidateAttributeDecl        (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlAttributePtr attr);
int         xmlValidateNotationDecl         (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNotationPtr nota);
int         xmlValidateDtd                  (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlDtdPtr dtd);
int         xmlValidateDocument             (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc);
int         xmlValidateElement              (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNodePtr elem);
int         xmlValidateOneElement           (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNodePtr elem);
int         xmlValidateOneAttribute         (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNodePtr elem,
                                             xmlAttrPtr attr,
                                             const CHAR *value);
int         xmlIsMixedElement               (xmlDocPtr doc,
                                             const CHAR *name);

Description

Details

xmlValidityErrorFunc ()

void        (*xmlValidityErrorFunc)         (void *ctx,
                                             const char *msg,
                                             ...);

ctx : 
msg : 
... : 


xmlValidityWarningFunc ()

void        (*xmlValidityWarningFunc)       (void *ctx,
                                             const char *msg,
                                             ...);

ctx : 
msg : 
... : 


xmlParserValidityError ()

void        xmlParserValidityError          (void *ctx,
                                             const char *msg,
                                             ...);

Display and format an validity error messages, gives file, line, position and extra parameters.

ctx : 
msg : 
... : 


xmlParserValidityWarning ()

void        xmlParserValidityWarning        (void *ctx,
                                             const char *msg,
                                             ...);

Display and format a validity warning messages, gives file, line, position and extra parameters.

ctx : 
msg : 
... : 


XML_MIN_NOTATION_TABLE

#define     XML_MIN_NOTATION_TABLE


xmlNotationTablePtr


XML_MIN_ELEMENT_TABLE

#define     XML_MIN_ELEMENT_TABLE


xmlElementTablePtr


XML_MIN_ATTRIBUTE_TABLE

#define     XML_MIN_ATTRIBUTE_TABLE


xmlAttributeTablePtr


xmlAddNotationDecl ()

xmlNotationPtr xmlAddNotationDecl           (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *name,
                                             const CHAR *PublicID,
                                             const CHAR *SystemID);

Register a new notation declaration

ctxt : 
dtd : 
name : 
PublicID : 
SystemID : 
Returns : 


xmlCopyNotationTable ()

xmlNotationTablePtr xmlCopyNotationTable    (xmlNotationTablePtr table);

Build a copy of a notation table.

table : 
Returns : 


xmlFreeNotationTable ()

void        xmlFreeNotationTable            (xmlNotationTablePtr table);

Deallocate the memory used by an entities hash table.

table : 


xmlDumpNotationTable ()

void        xmlDumpNotationTable            (xmlBufferPtr buf,
                                             xmlNotationTablePtr table);

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

buf : 
table : 


xmlNewElementContent ()

xmlElementContentPtr xmlNewElementContent   (CHAR *name,
                                             xmlElementContentType type);

Allocate an element content structure.

name : 
type : 
Returns : 


xmlCopyElementContent ()

xmlElementContentPtr xmlCopyElementContent  (xmlElementContentPtr content);

Build a copy of an element content description.

content : 
Returns : 


xmlFreeElementContent ()

void        xmlFreeElementContent           (xmlElementContentPtr cur);

Free an element content structure. This is a recursive call !

cur : 


xmlAddElementDecl ()

xmlElementPtr xmlAddElementDecl             (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *name,
                                             xmlElementContentType type,
                                             xmlElementContentPtr content);

Register a new element declaration

ctxt : 
dtd : 
name : 
type : 
content : 
Returns : 


xmlCopyElementTable ()

xmlElementTablePtr xmlCopyElementTable      (xmlElementTablePtr table);

Build a copy of an element table.

table : 
Returns : 


xmlFreeElementTable ()

void        xmlFreeElementTable             (xmlElementTablePtr table);

Deallocate the memory used by an element hash table.

table : 


xmlDumpElementTable ()

void        xmlDumpElementTable             (xmlBufferPtr buf,
                                             xmlElementTablePtr table);

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

buf : 
table : 


xmlCreateEnumeration ()

xmlEnumerationPtr xmlCreateEnumeration      (CHAR *name);

create and initialize an enumeration attribute node.

name : 
Returns : 


xmlFreeEnumeration ()

void        xmlFreeEnumeration              (xmlEnumerationPtr cur);

free an enumeration attribute node (recursive).

cur : 


xmlCopyEnumeration ()

xmlEnumerationPtr xmlCopyEnumeration        (xmlEnumerationPtr cur);

Copy an enumeration attribute node (recursive).

cur : 
Returns : 


xmlAddAttributeDecl ()

xmlAttributePtr xmlAddAttributeDecl         (xmlValidCtxtPtr ctxt,
                                             xmlDtdPtr dtd,
                                             const CHAR *elem,
                                             const CHAR *name,
                                             xmlAttributeType type,
                                             xmlAttributeDefault def,
                                             const CHAR *defaultValue,
                                             xmlEnumerationPtr tree);

Register a new attribute declaration

ctxt : 
dtd : 
elem : 
name : 
type : 
def : 
defaultValue : 
tree : 
Returns : 


xmlCopyAttributeTable ()

xmlAttributeTablePtr xmlCopyAttributeTable  (xmlAttributeTablePtr table);

Build a copy of an attribute table.

table : 
Returns : 


xmlFreeAttributeTable ()

void        xmlFreeAttributeTable           (xmlAttributeTablePtr table);

Deallocate the memory used by an entities hash table.

table : 


xmlDumpAttributeTable ()

void        xmlDumpAttributeTable           (xmlBufferPtr buf,
                                             xmlAttributeTablePtr table);

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

buf : 
table : 


xmlValidateRoot ()

int         xmlValidateRoot                 (xmlValidCtxtPtr ctxt,
                                             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 : 
doc : 
Returns : 


xmlValidateElementDecl ()

int         xmlValidateElementDecl          (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             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 : 
doc : 
elem : 
Returns : 


xmlValidateAttributeDecl ()

int         xmlValidateAttributeDecl        (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             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 : 
doc : 
attr : 
Returns : 


xmlValidateNotationDecl ()

int         xmlValidateNotationDecl         (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             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 constraing exist on notation declarations But this function get called anyway ...

ctxt : 
doc : 
nota : 
Returns : 


xmlValidateDtd ()

int         xmlValidateDtd                  (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlDtdPtr dtd);

Try to validate the dtd instance

basically it does check all the definitions in the DtD.

ctxt : 
doc : 
dtd : 
Returns : 


xmlValidateDocument ()

int         xmlValidateDocument             (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc);

Try to validate the document instance

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

ctxt : 
doc : 
Returns : 


xmlValidateElement ()

int         xmlValidateElement              (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNodePtr elem);

Try to validate the subtree under an element

ctxt : 
doc : 
elem : 
Returns : 


xmlValidateOneElement ()

int         xmlValidateOneElement           (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             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 : 
doc : 
elem : 
Returns : 


xmlValidateOneAttribute ()

int         xmlValidateOneAttribute         (xmlValidCtxtPtr ctxt,
                                             xmlDocPtr doc,
                                             xmlNodePtr elem,
                                             xmlAttrPtr attr,
                                             const CHAR *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 : 
doc : 
elem : 
attr : 
value : 
Returns : 


xmlIsMixedElement ()

int         xmlIsMixedElement               (xmlDocPtr doc,
                                             const CHAR *name);

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

doc : 
name : 
Returns :