-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxml.h
More file actions
46 lines (33 loc) · 703 Bytes
/
xml.h
File metadata and controls
46 lines (33 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef XML_H
#define XML_H
typedef struct _XmlAttribute XmlAttribute;
typedef struct _XmlDocument XmlDocument;
typedef struct _XmlName XmlName;
typedef struct _XmlNode XmlNode;
int xml_attribute_free (const XmlAttribute *attribute);
int xml_attribute_init (XmlAttribute *attribute);
int xml_document_free (const XmlDocument *document);
int xml_document_init (XmlDocument *document);
struct _XmlAttribute
{
XmlName *name;
char *value;
};
struct _XmlDocument
{
XmlNode *root;
};
struct _XmlName
{
char *prefix;
char *local;
};
struct _XmlNode
{
XmlName *name;
char *value;
XmlNode *parent;
XmlAttribute *attributes;
XmlNode *children;
};
#endif