TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
xml.h
Go to the documentation of this file.
1/*
2 * xml.h -- Interface file for XML
3 *
4 * @(#) $Id$
5 */
6
7#ifndef _XML_H_
8#define _XML_H_
9
10typedef struct xmlAttribute {
11 char *name;
12 char *value;
15
16typedef struct xmlElement {
17 char *name; /* element name */
18 char *pcdata; /* string associated with this element */
19 struct xmlAttribute *attr; /* attributes of this element */
20 int level; /* nested level */
21 struct xmlElement *next; /* next element at the same level */
22 struct xmlElement *sub; /* next element at the next level (nested) */
23 struct xmlElement *up; /* upper element */
25
26extern txmlElement *xmlInsertElt(txmlElement *curElt, const char *name, const char **atts);
27extern txmlElement *xmlReadFile(const char *file);
28extern int xmlWriteFile(const char *file, txmlElement *startElt, char *dtd);
29extern char *xmlGetAttr(txmlElement *curElt, char *attrname);
30extern txmlElement *xmlNextElt(txmlElement *startElt);
31extern txmlElement *xmlSubElt(txmlElement *startElt);
32extern txmlElement *xmlWalkElt(txmlElement *startElt);
33extern txmlElement *xmlWalkSubElt(txmlElement *startElt, txmlElement *topElt);
34extern txmlElement *xmlFindNextElt(txmlElement *startElt, char *name);
35extern txmlElement *xmlFindEltAttr(txmlElement *startElt, char *name, char *attrname, char *attrvalue);
36
37#endif /* _XML_H_ */
38
39
40
char * name
Definition xml.h:11
struct xmlAttribute * next
Definition xml.h:13
char * value
Definition xml.h:12
char * name
Definition xml.h:17
struct xmlElement * up
Definition xml.h:23
int level
Definition xml.h:20
struct xmlElement * sub
Definition xml.h:22
struct xmlAttribute * attr
Definition xml.h:19
char * pcdata
Definition xml.h:18
struct xmlElement * next
Definition xml.h:21
txmlElement * xmlInsertElt(txmlElement *curElt, const char *name, const char **atts)
Definition xml.cpp:123
txmlElement * xmlFindNextElt(txmlElement *startElt, char *name)
Definition xml.cpp:553
struct xmlAttribute txmlAttribute
txmlElement * xmlWalkElt(txmlElement *startElt)
Definition xml.cpp:466
txmlElement * xmlFindEltAttr(txmlElement *startElt, char *name, char *attrname, char *attrvalue)
Definition xml.cpp:587
txmlElement * xmlSubElt(txmlElement *startElt)
Definition xml.cpp:440
txmlElement * xmlWalkSubElt(txmlElement *startElt, txmlElement *topElt)
Definition xml.cpp:509
struct xmlElement txmlElement
txmlElement * xmlReadFile(const char *file)
Definition xml.cpp:237
int xmlWriteFile(const char *file, txmlElement *startElt, char *dtd)
Definition xml.cpp:340
char * xmlGetAttr(txmlElement *curElt, char *attrname)
Definition xml.cpp:378
txmlElement * xmlNextElt(txmlElement *startElt)
Definition xml.cpp:410