Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

XML Tree


Modules

 XML Node

Read Flags

#define GWEN_XML_FLAGS_DEFAULT
#define GWEN_XML_FLAGS_HANDLE_HEADERS   0x1000
#define GWEN_XML_FLAGS_HANDLE_OPEN_HTMLTAGS   0x0040
#define GWEN_XML_FLAGS_IGNORE_DESCR   0x0200
#define GWEN_XML_FLAGS_IGNORE_INCLUDE   0x0008
#define GWEN_XML_FLAGS_INCLUDE_TO_TOPLEVEL   0x0004
#define GWEN_XML_FLAGS_INDENT   0x0020
#define GWEN_XML_FLAGS_KEEP_BLANKS   0x0400
#define GWEN_XML_FLAGS_KEEP_CNTRL   0x0100
#define GWEN_XML_FLAGS_NO_CONDENSE   0x0080
#define GWEN_XML_FLAGS_READ_COMMENTS   0x0001
#define GWEN_XML_FLAGS_SHARE_TOPLEVEL   0x0002
#define GWEN_XML_FLAGS_SIMPLE   0x0800
#define GWEN_XML_FLAGS_WRITE_COMMENTS   0x0010

Typedefs

typedef int(* GWEN_XML_INCLUDE_FN )(GWEN_XMLNODE *n, const char *path, const char *file, GWEN_STRINGLIST *sl, GWEN_TYPE_UINT32 flags)
typedef GWEN__XMLNODE GWEN_XMLNODE

Enumerations

enum  GWEN_XMLNODE_TYPE { GWEN_XMLNodeTypeTag = 0, GWEN_XMLNodeTypeData, GWEN_XMLNodeTypeComment }

Define Documentation

#define GWEN_XML_FLAGS_DEFAULT
 

Value:

combination of other flags resembling the default flags

#define GWEN_XML_FLAGS_HANDLE_HEADERS   0x1000
 

apply special treatment to toplevel header tags (such as <?xml>)

#define GWEN_XML_FLAGS_HANDLE_OPEN_HTMLTAGS   0x0040
 

Let the parser accept some HTML which are known to be unclosed (e.g. the tag "BR" in HTML tags is never closed). If not set a "BR" tag without a corresponding "/BR" will produce an error.

#define GWEN_XML_FLAGS_IGNORE_DESCR   0x0200
 

If set then DESCR tags are ignored when reading XML files.

#define GWEN_XML_FLAGS_IGNORE_INCLUDE   0x0008
 

if set then include tags/elements are treated as any other tag (i.e. no automatic file inclusion takes place. Instead the include tag is stored like any other tag would be).

#define GWEN_XML_FLAGS_INCLUDE_TO_TOPLEVEL   0x0004
 

if set then the file given to the include tag/element are loaded to the root of the XML tree regardless of the tag's location.

#define GWEN_XML_FLAGS_INDENT   0x0020
 

Indent lines according to node level when writing nodes. This increases the readability of the resulting file.

#define GWEN_XML_FLAGS_KEEP_BLANKS   0x0400
 

#define GWEN_XML_FLAGS_KEEP_CNTRL   0x0100
 

If set then control characters (such as CR, LF) will not be removed from data.

#define GWEN_XML_FLAGS_NO_CONDENSE   0x0080
 

If set then data will not be condensed (e.g. multiple spaces will not be replaced by a single one).

#define GWEN_XML_FLAGS_READ_COMMENTS   0x0001
 

if set then comments are read. Otherwise they are ignored when reading a file

#define GWEN_XML_FLAGS_SHARE_TOPLEVEL   0x0002
 

if set then toplevel elements are shared across all files (even included ones, if the include tag/element appears in the top level)

#define GWEN_XML_FLAGS_SIMPLE   0x0800
 

#define GWEN_XML_FLAGS_WRITE_COMMENTS   0x0010
 

Also write comments when writing a node.


Typedef Documentation

typedef int(* GWEN_XML_INCLUDE_FN)(GWEN_XMLNODE *n, const char *path, const char *file, GWEN_STRINGLIST *sl, GWEN_TYPE_UINT32 flags)
 

typedef struct GWEN__XMLNODE GWEN_XMLNODE
 

The abstract type XMLNODE. Each node is one node in the document tree and can represent different things, see GWEN_XMLNODE_TYPE.


Enumeration Type Documentation

enum GWEN_XMLNODE_TYPE
 

The possible types of a GWEN_XMLNODE.

Enumerator:
GWEN_XMLNodeTypeTag  A node can be a tag (in XML notation these are called elements).
GWEN_XMLNodeTypeData  A node can be some data.
GWEN_XMLNodeTypeComment  A node can be some XML comment.


Generated on Wed Oct 5 15:12:38 2005 for gwenhywfar by  doxygen 1.4.4