Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

LXMLstore_s Struct Reference

#include <lxml.h>

List of all members.

Public Attributes

char * attr
 the name of the attribute

int value_type
 the type of attribute's value: LXML_String, LXML_Int or LXML_Boolean

void ** dest
 pointer to a pointer pointing to where the value is (to be) stored

int dest_kind
 the kind of the destination '*dest': LXML_Unique, LXML_List


Detailed Description

Structure mapping an attribute to application specific data. This structure is used to convert data between the XML attributes of an element and the application specific data. Each XML attribute has a type 'value_type' (string, int, boolean). Associated to it is 'dest', a pointer to a pointer pointing to where the application specific data is stored. When converting from tree structure to application specific data, the value of the attribute is converted from its original string format to its 'value_type' (int, boolean. No conversion done for string type). This value is then copied into the application data at '*dest'. If the dest_kind is of kind LXML_Unique then an error is issued if there were already a data (check possible only for string value_type). If the dest_kind is of kind LXML_List, then the value is appended to the list pointed to by *dest When converting from application data to tree structure, then if 'dest' and '*dest' are not NULL, an attribute (or a list of attributes) are created from the values in '*dest' after conversion from their 'value_type' to a string.


Member Data Documentation

char* LXMLstore_s::attr
 

the name of the attribute

void** LXMLstore_s::dest
 

pointer to a pointer pointing to where the value is (to be) stored

int LXMLstore_s::dest_kind
 

the kind of the destination '*dest': LXML_Unique, LXML_List

int LXMLstore_s::value_type
 

the type of attribute's value: LXML_String, LXML_Int or LXML_Boolean


The documentation for this struct was generated from the following file:
Generated on Wed Oct 22 15:57:23 2003 for XetPan by doxygen 1.3.2