All you need to write your code by own and first of all you must know XML.
I just can give some hints
You need to define your macros like this
<pre lang="xml">#include <stdio.h>
#include <tchar.h>
#define START_NODE( \
NodeName , \
FilePointer) \
fprintf( FilePointer , "<%s>\n" , NodeName ) \
#define END_NODE( \
NodeName , \
FilePointer) \
fprintf( FilePointer , "</%s>\n" , NodeName ) \
int _tmain(int argc, _TCHAR* argv[])
{
FILE *fp = NULL;
START_NODE("t1", stdout);
END_NODE("t1", stdout);
getchar();
return 0;
}
but using these MACROs
you can't give attributes to nodes...
This will do if you don't need attributes....
If you want then
use functions instead of macros...