Simple C Expat Wrapper (SCEW)  1.1.7
Typedefs | Enumerations | Functions
tree.h File Reference

SCEW tree handling routines. More...

#include "export.h"
#include "element.h"
#include <expat.h>

Go to the source code of this file.

Typedefs

typedef struct scew_tree scew_tree
 This is the type delcaration for XML trees.
 
typedef scew_bool(* scew_tree_cmp_hook )(scew_tree const *, scew_tree const *)
 SCEW tree compare hooks might be used to define new user XML tree comparisons. More...
 

Enumerations

enum  scew_tree_standalone { scew_tree_standalone_unknown, scew_tree_standalone_no, scew_tree_standalone_yes }
 List of possible values for the standalone attribute. More...
 

Functions

SCEW_API scew_treescew_tree_create (void)
 Creates a new empty XML tree in memory. More...
 
SCEW_API scew_treescew_tree_copy (scew_tree const *tree)
 Makes a deep copy of the given tree. More...
 
SCEW_API void scew_tree_free (scew_tree *tree)
 Frees a tree memory structure. More...
 
SCEW_API scew_bool scew_tree_compare (scew_tree const *a, scew_tree const *b, scew_tree_cmp_hook hook)
 Performs a deep comparison for the given trees. More...
 
SCEW_API XML_Char const * scew_tree_xml_version (scew_tree const *tree)
 Returns the current XML version for the given tree. More...
 
SCEW_API void scew_tree_set_xml_version (scew_tree *tree, XML_Char const *version)
 Sets the XML version in the XML declaration to the given tree. More...
 
SCEW_API XML_Char const * scew_tree_xml_encoding (scew_tree const *tree)
 Returns the current XML character encoding for the given tree. More...
 
SCEW_API void scew_tree_set_xml_encoding (scew_tree *tree, XML_Char const *encoding)
 Sets the character encoding used in the given XML tree. More...
 
SCEW_API scew_tree_standalone scew_tree_xml_standalone (scew_tree const *tree)
 Returns whether the given tree is an standalone document. More...
 
SCEW_API void scew_tree_set_xml_standalone (scew_tree *tree, scew_tree_standalone standalone)
 The standalone property tells the XML processor whether there are any other extra files to load, such as external entities or DTDs. More...
 
SCEW_API scew_elementscew_tree_root (scew_tree const *tree)
 Returns the root element of the given tree. More...
 
SCEW_API scew_elementscew_tree_set_root (scew_tree *tree, XML_Char const *name)
 Creates the root element of an XML tree with the given name. More...
 
SCEW_API scew_elementscew_tree_set_root_element (scew_tree *tree, scew_element *root)
 Sets the root element of an XML tree with the given element. More...
 
SCEW_API XML_Char const * scew_tree_xml_preamble (scew_tree const *tree)
 Return the XML preamble for the given tree. More...
 
SCEW_API void scew_tree_set_xml_preamble (scew_tree *tree, XML_Char const *preamble)
 Sets the preamble string for the XML document. More...
 

Detailed Description

SCEW tree handling routines.

Author
Aleix Conchillo Flaque aleix.nosp@m.@mem.nosp@m.ber.f.nosp@m.sf.o.nosp@m.rg
Date
Thu Feb 20, 2003 23:32 , , ,