#include "tree.h"
#include "xtree.h"
#include "xprint.h"
#include <stdio.h>
#include <string.h>
Functions | |
scew_tree * | scew_tree_create () |
void | scew_tree_free (scew_tree *tree) |
unsigned int | scew_tree_save_file (scew_tree const *tree, char const *file_name) |
scew_element * | scew_tree_root (scew_tree const *tree) |
scew_element * | scew_tree_add_root (scew_tree *tree, XML_Char const *name) |
|
Creates the first element (root) of an XML tree with the given name.
|
|
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.
|
|
Saves an XML tree in to the specified file. If the file doesn't exist it will create it, and if it exists it will overwrite it. |