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