#include "types.h"
#include <expat.h>
Go to the source code of this file.
Functions | |
scew_tree * | scew_tree_create () |
void | scew_tree_free (scew_tree *tree) |
scew_element * | scew_tree_root (scew_tree const *tree) |
scew_element * | scew_tree_add_root (scew_tree *tree, XML_Char const *name) |
void | scew_tree_set_xml_version (scew_tree *tree, XML_Char const *version) |
void | scew_tree_set_xml_encoding (scew_tree *tree, XML_Char const *encoding) |
void | scew_tree_set_xml_preamble (scew_tree *tree, XML_Char const *preamble) |
void | scew_tree_set_xml_standalone (scew_tree *tree, int standalone) |
Tree related functions. SCEW provides functions to create new XML trees.
|
Creates a new empty XML tree in memory. You can also have access to the tree created by the parser when reading an XML file.
|
|
Frees a tree memory structure. Call this function when you are done with your XML. Do not call this function with a |
|
Returns the root element of the given tree.
|
|
Creates the first element (root) of an XML tree with the given name.
|
|
Sets the XML version in the XML declaration. Currently there is one XML version, so the value is always 1.0. If there were more XML versions, this proerty tells the XML processor which one to use. |
|
Sets the character encoding used in the XML document. The default is UTF-8. |
|
Sets the preamble string for the XML document. Typically this will contain a DOCTYPE declaration. |
|
The standalone property tells the XML processor whether there are any other extra files to load, such as external entities or DTDs. If the XML document can stand on its own set it to 'yes'. The default SCEW value is 'no', so the XML processor will load what it needs to.
|