- Timestamp:
- Feb 2, 2011, 9:51:14 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gaycko/trunk/src/dom/dom.c
r4730 r4738 73 73 e->attributes[e->attribute_count].name = strdup(attr->name); 74 74 e->attributes[e->attribute_count].value = strdup(attr->children->content); 75 e->attribute_count++; 75 76 } 76 77 } … … 129 130 LEVEL printf("%s\n", elem->text); 130 131 } else { 131 LEVEL printf("<%s>\n", elem->name); 132 LEVEL printf("<%s", elem->name); 133 int a; 134 for(a = 0; a < elem->attribute_count; a++) { 135 printf(" %s=\"%s\"", elem->attributes[a].name, elem->attributes[a].value); 136 } 137 printf(">\n"); 132 138 } 133 139
Note: See TracChangeset
for help on using the changeset viewer.