torcs - 1.2.2

src/libs/txml/xml.h

Go to the documentation of this file.
00001 /*
00002  * xml.h -- Interface file for XML 
00003  *
00004  * @(#) $Id: xml.h,v 1.1.1.1 2001/06/24 18:29:48 torcs Exp $
00005  */
00006  
00007 #ifndef _XML_H_
00008 #define _XML_H_
00009 
00010 typedef struct xmlAttribute {
00011     char                *name;
00012     char                *value;
00013     struct xmlAttribute *next;
00014 } txmlAttribute;
00015 
00016 typedef struct xmlElement {
00017     char                *name;          /* element name */
00018     char                *pcdata;        /* string associated with this element */
00019     struct xmlAttribute *attr;          /* attributes of this element */
00020     int                 level;          /* nested level */
00021     struct xmlElement   *next;          /* next element at the same level */
00022     struct xmlElement   *sub;           /* next element at the next level (nested) */
00023     struct xmlElement   *up;            /* upper element */
00024 } txmlElement;    
00025 
00026 extern txmlElement *xmlInsertElt(txmlElement *curElt, const char *name, const char **atts);
00027 extern txmlElement *xmlReadFile(const char *file);
00028 extern int          xmlWriteFile(const char *file, txmlElement *startElt, char *dtd);
00029 extern char        *xmlGetAttr(txmlElement *curElt, char *attrname);
00030 extern txmlElement *xmlNextElt(txmlElement *startElt);
00031 extern txmlElement *xmlSubElt(txmlElement *startElt);
00032 extern txmlElement *xmlWalkElt(txmlElement *startElt);
00033 extern txmlElement *xmlWalkSubElt(txmlElement *startElt, txmlElement *topElt);
00034 extern txmlElement *xmlFindNextElt(txmlElement *startElt, char *name);
00035 extern txmlElement *xmlFindEltAttr(txmlElement *startElt, char *name, char *attrname, char *attrvalue);
00036 
00037 #endif /* _XML_H_ */ 
00038 
00039 
00040 

Generated at Thu Feb 26 21:52:28 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.