|
Simple C Expat Wrapper (SCEW)
1.1.4
|
SCEW tree handling routines. More...
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. | |
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_tree * | scew_tree_create (void) |
| Creates a new empty XML tree in memory. | |
| SCEW_API scew_tree * | scew_tree_copy (scew_tree const *tree) |
| Makes a deep copy of the given tree. | |
| SCEW_API void | scew_tree_free (scew_tree *tree) |
| Frees a tree memory structure. | |
| 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. | |
| SCEW_API XML_Char const * | scew_tree_xml_version (scew_tree const *tree) |
| Returns the current XML version for the given tree. | |
| 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. | |
| SCEW_API XML_Char const * | scew_tree_xml_encoding (scew_tree const *tree) |
| Returns the current XML character encoding for the given tree. | |
| 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. | |
| SCEW_API scew_tree_standalone | scew_tree_xml_standalone (scew_tree const *tree) |
| Returns whether the given tree is an standalone document. | |
| 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. | |
| SCEW_API scew_element * | scew_tree_root (scew_tree const *tree) |
| Returns the root element of the given tree. | |
| SCEW_API scew_element * | scew_tree_set_root (scew_tree *tree, XML_Char const *name) |
| Creates the root element of an XML tree with the given name. | |
| SCEW_API scew_element * | scew_tree_set_root_element (scew_tree *tree, scew_element *root) |
| Sets the root element of an XML tree with the given element. | |
| SCEW_API XML_Char const * | scew_tree_xml_preamble (scew_tree const *tree) |
| Return the XML preamble for the given tree. | |
| SCEW_API void | scew_tree_set_xml_preamble (scew_tree *tree, XML_Char const *preamble) |
| Sets the preamble string for the XML document. | |
SCEW tree handling routines.
1.8.1.2