Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

validator.c File Reference

#include <stdlib.h>
#include <string.h>
#include "constraints.h"
#include "referenceTables.h"
#include "validator.h"

Functions

xmlcpgMapxmlcpggenerateUnparsedEntityStructure (const xmlcpgList *dtd)
 Builds the unparsed entity map.

xmlcpgMapxmlcpggenerateValidatorStructure (const xmlcpgList *dtd)
 Groups the elements and attribute list of the dtd in the validator structure.

void xmlcpgspecializedAttributeValidator (xmlcpgElement *element, xmlcpgMap *specs)
void xmlcpgrecursiveSpecializedValidator (xmlcpgObject *element, xmlcpgMap *elementMap)
void xmlcpgspecializedValidatorElement (xmlcpgObject *element, xmlcpgMap *elementMap)
 Validates only one element and its content against the specialized validator structure.

void xmlcpgspecializedValidator (xmlcpgObject *element, xmlcpgMap *elementMap)
 Validates the document element against the specialized validator structure.

void xmlcpgvalidate (xmlcpgObject *xml)
 Validates the whole document..


Function Documentation

xmlcpgMap* xmlcpggenerateUnparsedEntityStructure const xmlcpgList   dtd
 

Builds the unparsed entity map.

Parameters:
dtd  the list of element declarations, attribute list declarations, entity declaration, etc.
Returns:
the Unparsed Entity map.

xmlcpgMap* xmlcpggenerateValidatorStructure const xmlcpgList   dtd
 

Groups the elements and attribute list of the dtd in the validator structure.

Parameters:
dtd  the list of element declarations, attribute list declarations, entity declaration, etc.
Returns:
the Element Map.

void xmlcpgrecursiveSpecializedValidator xmlcpgObject   element,
xmlcpgMap   elementMap
[static]
 

void xmlcpgspecializedAttributeValidator xmlcpgElement   element,
xmlcpgMap   specs
[static]
 

void xmlcpgspecializedValidator xmlcpgObject   element,
xmlcpgMap   elementMap
 

Validates the document element against the specialized validator structure.

Parameters:
element  the document element to xmlcpgvalidate.
elementMap  the validator structure.

void xmlcpgspecializedValidatorElement xmlcpgObject   element,
xmlcpgMap   elementMap
 

Validates only one element and its content against the specialized validator structure.

Parameters:
element  the document element to xmlcpgvalidate.
elementMap  the validator structure.

void xmlcpgvalidate xmlcpgObject   xml
 

Validates the whole document..

Parameters:
xml  the document to xmlcpgvalidate.


Generated on Tue Nov 11 14:59:53 2003 for xmlcpg by doxygen1.2.18