x[0] = tr;
x[1] = 0;
if (m_verbose)
- printf ("------ attr %.*s=%.*s\n", attr_len, attr_name,
- val_len, value);
+ {
+ printf("------ attr %.*s", attr_len, attr_name);
+ if (value)
+ printf("=%.*s", val_len, value);
+ printf("\n");
+ }
event.attribute(name, len, attr_name, attr_len, value, val_len, x);
}
return i;
{
if (m_verbose)
printf("------ any tag %s %.*s\n",
- close_it ? " close" : "end", tag_len, tag);
+ close_it ? "close" : "end", tag_len, tag);
event.anyTagEnd(tag, tag_len, close_it);
i++;
}