(file) Return to xml.c CVS log (file) (dir) Up to [OMI] / omi / xml

Diff for /omi/xml/xml.c between version 1.1 and 1.2

version 1.1, 2012/05/30 22:47:40 version 1.2, 2012/06/15 20:51:15
Line 1207 
Line 1207 
     return NULL;     return NULL;
 } }
  
 void XML_Elem_Dump(  
     const XML_Elem* s)  
 {  
     static const char* _typeNames[] =  
     {  
         "NONE",  
         "START",  
         "END",  
         "INSTRUCTION",  
         "CHARS",  
         "COMMENT",  
     };  
     size_t i;  
   
     printf("==== XML_Elem:\n");  
     printf("type={%s}\n", _typeNames[(int)s->type]);  
     printf("data={%s}\n", s->data);  
     printf("size=%u\n", (int)s->size);  
   
     if (s->attrsSize)  
     {  
         for (i = 0; i < s->attrsSize; i++)  
         {  
             const XML_Attr* attr = &s->attrs[i];  
             printf("%s=%s\n", attr->name, attr->value);  
         }  
     }  
   
     putchar('\n');  
 }  
   
 void XML_NameSpace_Dump(  
     XML_NameSpace* self)  
 {  
     printf("==== XML_NameSpace:\n");  
     printf("name={%s}\n", self->name);  
     printf("id={%c}\n", (int)self->id);  
     printf("uri={%s}\n", self->uri);  
     printf("depth={%u}\n", (int)self->depth);  
     putchar('\n');  
 }  
   
 void XML_Init( void XML_Init(
     XML* self)     XML* self)
 { {
Line 1474 
Line 1432 
     return 0;     return 0;
 } }
  
 void XML_Dump(  
     XML* self)  
 {  
     size_t i;  
   
     printf("==== XML:\n");  
     printf("nameSpaces:\n");  
   
     for (i = 0; i < self->nameSpacesSize; i++)  
     {  
         XML_NameSpace_Dump(&self->nameSpaces[i]);  
     }  
   
     putchar('\n');  
 }  
   
 void XML_PutError(XML* self) void XML_PutError(XML* self)
 { {
     if (self->status == -1)     if (self->status == -1)


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

ViewCVS 0.9.2