{
if (!strncasecmp(new+1, element, elementlen))
{
+ if (*(new+elementlen+1) != '>')
+ {
+ *rlen = 0;
+ *name = new+1;
+ *len = XML_ELEMENT_NO_CLOSING_TAG;
+ return 0;
+ }
+
if (found == num)
{
if (start_tag)
}
found++;
}
- /* else proper closing tag not yet found, continue */
+ /* else proper closing tag not yet found, continue. */
+ /* TODO: could be a bad match to the opening tag though */
+ /* like: <test></teft> */
new = memchr(cur, '>', restlen);
if (!new)
*rlen = 0;
*name = cur;
*len = XML_ELEMENT_NO_CLOSING_TAG;
-printf("4\n");
return 0;
}
}