#include <stdio.h>
#include <string.h>
static Eina_Bool _xml_attr_cb(
void *data, 
const char *key, 
const char *value);
 static Eina_Bool _xml_tag_cb(
void *data, Eina_Simple_XML_Type type,
                 const char *content, unsigned offset, unsigned length);
static Eina_Bool _print(
const void *container, 
void *data, 
void *fdata);
 int
main(void)
{
   FILE *file;
   long size;
   char *buffer;
   if ((file = fopen("chat.xml", "rb")))
     {
        fseek(file, 0, SEEK_END);
        size = ftell(file);
        fseek(file, 0, SEEK_SET);
        if ((buffer = malloc(size)))
          {
             if (fread(buffer, 1, size, file) != size)
               {
               }
                                   _xml_tag_cb, array);
        
             free(buffer);
          }
        else
          {
          }
        fclose(file);
     }
   else
     {
     }
   return 0;
}
_xml_tag_cb(void *data, Eina_Simple_XML_Type type, const char *content,
{
   char buffer[length+1];
   char str[512] = {'\0'};
     {
        if(!strncmp("post", content, strlen("post")))
          {
                                                                    length);
                                              _xml_attr_cb, str);
          }
        else if (!strncmp("login>", content, strlen("login>")))
          {
          }
        else if (!strncmp("message>", content, strlen("message>")))
          {
          }
     }
     {
          {
          }
          {
          }
     }
}
_xml_attr_cb(void *data, const char *key, const char *value)
{
   char *str = data;
   if(!strcmp("id", key))
   {
      snprintf(str, sizeof(value) + 3, "(%s) ", value);
   }
}
{
   printf("%s\n", (char *)data);
}