374 |
|
if (*(s = t + strcspn(t, EZXML_WS ">")) == '>') continue; |
375 |
|
else *s = '\0'; /* null terminate tag name */ |
376 |
|
for (i = 0; root->attr[i] && strcmp(n, root->attr[i][0]); i++); |
377 |
< |
|
378 |
< |
while (*(n = ++s + strspn(s, EZXML_WS)) && *n != '>') { |
377 |
> |
++s; |
378 |
> |
while (*(n = s + strspn(s, EZXML_WS)) && *n != '>') { |
379 |
|
if (*(s = n + strcspn(n, EZXML_WS))) *s = '\0'; /* attr name */ |
380 |
|
else { ezxml_err(root, t, "malformed <!ATTLIST"); break; } |
381 |
|
|
416 |
|
root->attr[i][j + 1] = (v) ? ezxml_decode(v, root->ent, *c) |
417 |
|
: NULL; |
418 |
|
root->attr[i][j] = n; /* attribute name */ |
419 |
+ |
++s; |
420 |
|
} |
421 |
|
} |
422 |
|
else if (! strncmp(s, "<!--", 4)) s = strstr(s + 4, "-->"); /* comments */ |