From 87b953957305fc1ece066efa60df5c7844183439 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sat, 12 Aug 2000 21:12:04 +0000 Subject: Large sync between my W3C base and Gnome's one: - parser.[ch]: added xmlGetFeaturesList() xmlGetFeature() and xmlAddFeature() - tree.[ch]: added xmlAddChildList() - xmllint.c: MAP_FAILED macro test - parser.h: added xmlParseCtxtExternalEntity() - valid.c: applied bug fixes removed warning - tree.c: added CDATA block to elements content - testSAX.c: cleanup of output - testHTML.c: added SAX testing - encoding.c: better error recovery - SAX.c, parser.c: fixed one of the external entity processing of the OASis testsuite - Makefile.am: added HTML SAX regression tests - configure.in: bumped to 2.2.2 - test/HTML/ result/HTML: added a few of HTML tests, and added the SAX results Daniel --- testSAX.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'testSAX.c') diff --git a/testSAX.c b/testSAX.c index e5568fc4..fc1f573e 100644 --- a/testSAX.c +++ b/testSAX.c @@ -402,12 +402,14 @@ endElementDebug(void *ctx, const xmlChar *name) void charactersDebug(void *ctx, const xmlChar *ch, int len) { + char output[40]; int i; - fprintf(stdout, "SAX.characters("); - for (i = 0;(i < len) && (i < 30);i++) - fprintf(stdout, "%c", ch[i]); - fprintf(stdout, ", %d)\n", len); + for (i = 0;(i