axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Functions
Axl DTD: Document type declaration interface (functions, validation, and DTD parsing)

Functions

axl_bool axl_dtd_are_equal (axlDtd *dtd, axlDtd *dtd2)
 Allows to check if the provided two references represents DTD documents with the same rules. More...
 
axl_bool axl_dtd_check_entity_ref_and_expand (axlDtdEntityResolver resolver, axlPointer data, axlStream *stream, const char *prefix, axlError **error)
 Allows to check if the stream contains a reference to a entity, calling the resolver to get the replacement text to be placed. More...
 
axl_bool axl_dtd_element_is_toplevel (axlDtd *dtd, axlDtdElement *element)
 Allows to check if the provided DTD ELEMENT representation is a top level definition. More...
 
axl_bool axl_dtd_entity_exists (axlDtd *dtd, const char *name, axlDtdEntityType type)
 Allows to check if the provided entity name, with the provided type is defined on the given DTD object. More...
 
char * axl_dtd_entity_value (axlDtd *dtd, const char *name, axlDtdEntityType type)
 Allows to get the content configured inside the entity that is identified by the provided name and the provided type. More...
 
void axl_dtd_free (axlDtd *dtd)
 Allows to destroy the provided axlDtd document. More...
 
axlDtdAttributeaxl_dtd_get_attr (axlDtd *dtd, const char *nodeName)
 Allows to get the set of attribute declerations for a particular node. More...
 
int axl_dtd_get_attr_contraints (axlDtd *dtd, const char *nodeName)
 Allows to get the number of constraints that have been configured for the particular node. More...
 
axlDtdElementaxl_dtd_get_element (axlDtd *dtd, const char *name)
 Allows to get the DTD element (axlDtdElement), inside the provided DTD (axlDtd), that represent the spefication for the node called by the provided name. More...
 
char * axl_dtd_get_element_name (axlDtdElement *element)
 Returns the name of the provided axlDtdElement. More...
 
AxlDtdElementType axl_dtd_get_element_type (axlDtdElement *element)
 Returns current element type for the provided axlDtdElement. More...
 
axlDtdElementListaxl_dtd_get_item_list (axlDtdElement *element)
 Returns current DTD content specification, represented by the Item list. More...
 
axlDtdElementaxl_dtd_get_root (axlDtd *dtd)
 Allows to get the root node for the provided DTD. More...
 
int axl_dtd_item_list_count (axlDtdElementList *itemList)
 Returns the number of item nodes (axlDtdElementListNode) inside the item list received (axlDtdElementList). More...
 
axlDtdElementListNodeaxl_dtd_item_list_get_node (axlDtdElementList *itemList, int position)
 Allows to get the provided item node reference (axlDtdElementListNode) from the provided item list (axlDtdElementList). More...
 
AxlDtdTimes axl_dtd_item_list_repeat (axlDtdElementList *itemList)
 Allows to get current configuration for DTD content spec repetition. More...
 
AxlDtdNestedType axl_dtd_item_list_type (axlDtdElementList *itemList)
 Allows to get current configuration for the provided item list, which is the content specification for a DTD element. More...
 
axlDtdElementListaxl_dtd_item_node_get_list (axlDtdElementListNode *node)
 Returns the item list inside the provided node. More...
 
AxlDtdTimes axl_dtd_item_node_get_repeat (axlDtdElementListNode *node)
 Allows to get current configuration for the provided content particule for the times to be repeated. More...
 
NodeType axl_dtd_item_node_get_type (axlDtdElementListNode *node)
 Allows to get current node type for the provided DTD element type content particule or item node (axlDtdElementListNode). More...
 
char * axl_dtd_item_node_get_value (axlDtdElementListNode *node)
 Allows to get the dtd item list value, which represents the node name that is being constrained/represented. More...
 
axlDtdaxl_dtd_parse (const char *entity, int entity_size, axlError **error)
 Allows to parse the provided entity, which is expected to contain a DTD (Document Type Definition). More...
 
axlDtdaxl_dtd_parse_from_file (const char *file_path, axlError **error)
 Allows to parse the provided DTD definition, which is found on the provided file path. More...
 
axl_bool axl_dtd_validate (axlDoc *doc, axlDtd *dtd, axlError **error)
 Allows to validate the given XML document (axlDoc) against the given document type definition (DTD, axlDtd). More...
 

Detailed Description