Denora API | July 22nd 2005 |
Nomad Dev Team | info@nomadirc.net |
This documentation is provided to give module coders a easy way to understand how the core code can be worked to their advantage. If there is something you do not understand please drop us a line. |
Function Reference | |
FILE *new_xml(char *filename) | Returns file pointer to a the new xml file |
void xml_write_header(FILE * ptr) | Write the basic XML header out |
void xml_write_footer(FILE * ptr) | Write the basic XML footer out |
void xml_write_tag(FILE * ptr, const char *tag, char *data) | Write out a basic string to a tagged xml format |
new_xml | |
Returns file pointer to a the new xml fileFILE *ptr; if (ptr = new_xml("filename.xml")) { alog(LOG_NORMAL, "have file pointer"); } |
xml_write_header | |||||||
Write the basic XML header outFILE *ptr; if (ptr = new_xml("filename.xml")) { xml_write_header(ptr); }This will result in a basic XML header, if you need a more custom header to your XML documents there are three global variables which you can set
|
xml_write_footer | |
Write the basic XML footer outFILE *ptr; if (ptr = new_xml("filename.xml")) { xml_write_header(ptr); xml_write_footer(ptr); }This will result in a basic XML header, if you have changed xml_header this will use that to close out the basic header |
xml_write_tag | |
Write out a basic string to a tagged xml formatFILE *ptr; if (ptr = new_xml("filename.xml")) { xml_write_header(ptr); xml_write_tag(ptr, "servername", ServerName); xml_write_footer(ptr); } |