tree.c File Reference

SCEW tree type declaration. More...

#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)


Detailed Description

SCEW tree type declaration.

Author:
Aleix Conchillo Flaque <aleix@member.fsf.org>
Date:
Thu Feb 20, 2003 23:45
Id
tree.c 639 2004-02-23 13:26:43Z rene

Function Documentation

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.

See also:
element.h

scew_tree* scew_tree_create  ) 
 

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.

See also:
parser.h

void scew_tree_free scew_tree *  tree  ) 
 

Frees a tree memory structure. Call this function when you are done with your XML. Do not call this function with a scew_tree obtained via a scew_parser, because scew_parser will delete it automatically when freed.

scew_element* scew_tree_root scew_tree const *  tree  ) 
 

Returns the root element of the given tree.

See also:
element.h

unsigned int scew_tree_save_file scew_tree const *  tree,
char const *  file_name
 

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.


Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6