I'm new to libxml and so far everything is good, but I noticed one thing that annoys me: When libxml reports characters, i.e. the handler's characters function is being called, "special" characters like ' or " or reported individually. example:
"It's a nice day today. Don't you agree?"
report:"
report: It
report: '
report: s a nice day today. Don
report: '
report: you aggree?
report: "
Is there any way to change that behavior, so it would be reported as a complete string? Don't get me wrong, it's not a problem to use strcat to put the original string together, but that's additional work ;)
I searched the headers and the net and found no solution. Thank you in advance.
Edit: Because the handler description above needs some more explaining. By reporting characters I mean when the handler's (htmlSAXHandler) handler.characters callback function is called, which I assigned:
void _characters(void *context, const xmlChar *ch, int len) {
printf("report: %s\n", chars);
}