- SAX.c testDocbook.c DOCBparser.c: more work on the support
of external parsed entities, added --noent to testDocbook
- valid.c: Garry Pennington found an uninitialized variable
access in xmlValidateElementContent()
Daniel
diff --git a/testDocbook.c b/testDocbook.c
index 76fc604..dfe53bd 100644
--- a/testDocbook.c
+++ b/testDocbook.c
@@ -43,6 +43,7 @@
static int sax = 0;
static int repeat = 0;
static int noout = 0;
+static int noent = 0;
static int push = 0;
static char *encoding = NULL;
@@ -789,6 +790,8 @@
push++;
else if ((!strcmp(argv[i], "-sax")) || (!strcmp(argv[i], "--sax")))
sax++;
+ else if ((!strcmp(argv[i], "-noent")) || (!strcmp(argv[i], "--noent")))
+ noent++;
else if ((!strcmp(argv[i], "-noout")) || (!strcmp(argv[i], "--noout")))
noout++;
else if ((!strcmp(argv[i], "-repeat")) ||
@@ -800,6 +803,7 @@
encoding = argv[i];
}
}
+ if (noent != 0) xmlSubstituteEntitiesDefault(1);
for (i = 1; i < argc ; i++) {
if ((!strcmp(argv[i], "-encode")) ||
(!strcmp(argv[i], "--encode"))) {