source: trunk/GDE/PHYML20130708/phyml/src/xml.h

Last change on this file was 10307, checked in by aboeckma, 11 years ago

added most recent version of phyml

File size: 1.9 KB
Line 
1#include <config.h>
2
3#ifndef XML_H
4#define XML_H
5
6#include "utilities.h"
7
8xml_node *XML_Load_File(FILE *fp);
9int XML_Add_Character(int c, char  **bufptr, char **buffer, int *bufsize);
10int XML_Parse_Element(FILE *fp, xml_node *n);
11int XML_Set_Attribute(xml_node *n, char *attr_name, char *attr_value);
12xml_attr *XML_Make_Attribute(xml_attr *prev, char *attr_name, char *attr_value);
13void XML_Make_Node_Id(xml_node *n, char *id);
14int XML_Set_Node_Id(xml_node *n, char *id);
15int XML_Set_Node_Value(xml_node *n, char *val);
16void XML_Make_Node_Value(xml_node *n, char *val);
17xml_node *XML_Search_Node_Name(char *name, int skip, xml_node *node);
18char *XML_Get_Attribute_Value(xml_node *node, char *id);
19int XML_Validate_Attr_Int(char *target, int num, ...);
20void XML_Free_XML_Attr(xml_attr *attr);
21void XML_Free_XML_Node(xml_node *node);
22void XML_Free_XML_Tree(xml_node *node);
23xml_node *XML_Search_Node_ID(char *id, int skip, xml_node *node);
24xml_node *XML_Make_Node(char *name);
25xml_node *XML_Search_Node_Attribute_Value(char *attr_name, char *value, int skip, xml_node *node);
26void XML_Check_Siterates_Node(xml_node *prev);
27int XML_Get_Number_Of_Classes_Siterates(xml_node *prev);
28int XML_Siterates_Number_Of_Classes(xml_node *sr_node);
29void XML_Check_Duplicate_ID(xml_node *n);
30void XML_Count_Number_Of_Node_With_ID(char *id, int *count, xml_node *n);
31void XML_Count_Number_Of_Node_With_Name(char *name, int *count, xml_node *n);
32void XML_Write_XML_Graph(FILE *fp, xml_node *root);
33void XML_Write_XML_Node(FILE *fp, int *indent, xml_node *root);
34xml_attr *XML_Search_Attribute(xml_node *n, char *target_attr_name);
35xml_node *XML_Copy_XML_Graph(xml_node *root);
36void XML_Copy_XML_Node(xml_node *cpy_root, xml_node *root);
37void Check_Mandatory_XML_Node(xml_node *root, char *name);
38xml_node *XML_Search_Node_Generic(char *nd_name, char *attr_name, char *attr_val, int skip, xml_node *node);
39
40
41#endif
Note: See TracBrowser for help on using the repository browser.