[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.3.2 Minidom (XML-Style)

If you want to read or write XML data, while avoiding the overhead of a complex XML library, the GGZ project offers the minidom library, which you can find in utils/metaserv/minidom. Currently, both the GGZ meta server and the Copenhagen game server make use of this library.

Usage example:

@verbatim DOM *conf;

conf = minidom_load("/etc/ggz/games/mygame.xml"); if((conf) && (conf->valid) && (conf->processed)) { printf("Root tag is named %s.\n", conf->el->name); printf("Attribute 'version' has value %s.\n", MD_att(conf->el, "version")); } minidom_free(conf);



This document was generated by Abel Cheung on December, 2 2004 using texi2html