Details
xmlValidityErrorFunc ()
void (*xmlValidityErrorFunc) (void *ctx,
const char *msg,
...); |
xmlValidityWarningFunc ()
void (*xmlValidityWarningFunc) (void *ctx,
const char *msg,
...); |
xmlParserValidityError ()
void xmlParserValidityError (void *ctx,
const char *msg,
...); |
Display and format an validity error messages, gives file,
line, position and extra parameters.
xmlParserValidityWarning ()
void xmlParserValidityWarning (void *ctx,
const char *msg,
...); |
Display and format a validity warning messages, gives file, line,
position and extra parameters.
XML_MIN_NOTATION_TABLE
#define XML_MIN_NOTATION_TABLE |
XML_MIN_ELEMENT_TABLE
#define XML_MIN_ELEMENT_TABLE |
XML_MIN_ATTRIBUTE_TABLE
#define XML_MIN_ATTRIBUTE_TABLE |
xmlAddNotationDecl ()
Register a new notation declaration
xmlCopyNotationTable ()
Build a copy of a notation table.
xmlFreeNotationTable ()
Deallocate the memory used by an entities hash table.
xmlDumpNotationTable ()
This will dump the content of the notation table as an XML DTD definition
xmlNewElementContent ()
Allocate an element content structure.
xmlCopyElementContent ()
Build a copy of an element content description.
xmlFreeElementContent ()
Free an element content structure. This is a recursive call !
xmlAddElementDecl ()
Register a new element declaration
xmlCopyElementTable ()
Build a copy of an element table.
xmlFreeElementTable ()
Deallocate the memory used by an element hash table.
xmlDumpElementTable ()
This will dump the content of the element table as an XML DTD definition
xmlCreateEnumeration ()
create and initialize an enumeration attribute node.
xmlFreeEnumeration ()
free an enumeration attribute node (recursive).
xmlCopyEnumeration ()
Copy an enumeration attribute node (recursive).
xmlAddAttributeDecl ()
Register a new attribute declaration
xmlCopyAttributeTable ()
Build a copy of an attribute table.
xmlFreeAttributeTable ()
Deallocate the memory used by an entities hash table.
xmlDumpAttributeTable ()
This will dump the content of the attribute table as an XML DTD definition
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
xmlValidateElementDecl ()
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 ]
xmlValidateAttributeDecl ()
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
xmlValidateNotationDecl ()
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 ...
xmlValidateDtd ()
Try to validate the dtd instance
basically it does check all the definitions in the DtD.
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.
xmlValidateElement ()
Try to validate the subtree under an element
xmlValidateOneElement ()
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
xmlValidateOneAttribute ()
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
xmlIsMixedElement ()
Search in the DtDs whether an element accept Mixed content (or ANY)
basically if it is supposed to accept text childs