#include "stdio.h"
#include "expat.h"
#include"string.h"
#define BUFFSIZE 8000
FILE *rtfFile;
static void startElement(void *cargo, const char *el,const char **attr)
{
}
static void endElement(void *cargo, const char *el)
{
}
static void characters(void *cargo, const char *ch, int len)
{
int i;
for (i=0; iputc(ch[i],rtfFile);
}
int main(int argc, char *argv[])
{
if(argc!=3)
{
printf("\nUsage :
for Example we can use following content of a
< ?xml version="1.0"?>
< story>
< storyinfo>
< author>Ranjeet Kumar</author>
< datewritten>October 15,1985 </datewritten>
< keyword>Don</keyword>
< /storyinfo>
< body >
< headline > It's not gonna to help you < /headline >
< para > Don't be fool < /para >
< /body >
< /story >
No comments:
Post a Comment