summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-09-10 14:40:43 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-09-10 14:40:43 +0000
commit7a51d6df13c7c9356b477c306bd6dd91c7e83c9e (patch)
treeea15a14886eb6fe55345b34e25a7f4086b77b742
parent05c13a20b9ac8153adb9158359e2aa09bfe965d0 (diff)
downloadlibxml2-7a51d6df13c7c9356b477c306bd6dd91c7e83c9e.tar.gz
fixing bug 59732, simple but allocates a new error code. Daniel
* include/libxml/xmlerror.h SAX.c: fixing bug 59732, simple but allocates a new error code. Daniel
-rw-r--r--ChangeLog5
-rw-r--r--SAX.c2
-rw-r--r--include/libxml/xmlerror.h3
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 78edee40..72dfc4b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 10 16:39:42 CEST 2001 Daniel Veillard <daniel@veillard.com>
+
+ * include/libxml/xmlerror.h SAX.c: fixing bug 59732, simple
+ but allocates a new error code.
+
Sun Sep 9 10:33:15 CEST 2001 Daniel Veillard <daniel@veillard.com>
* xmllint.c: John Fleck fixed typos in the options output
diff --git a/SAX.c b/SAX.c
index 4dab41e8..5466c017 100644
--- a/SAX.c
+++ b/SAX.c
@@ -971,6 +971,8 @@ startElement(void *ctx, const xmlChar *fullname, const xmlChar **atts)
"Validation failed: no DTD found !\n");
}
ctxt->validate = 0;
+ ctxt->valid = 0;
+ ctxt->errNo = XML_ERR_NO_DTD;
}
diff --git a/include/libxml/xmlerror.h b/include/libxml/xmlerror.h
index 88daeff9..5b437349 100644
--- a/include/libxml/xmlerror.h
+++ b/include/libxml/xmlerror.h
@@ -133,7 +133,8 @@ typedef enum {
XML_ERR_ENTITY_BOUNDARY, /* 90 */
XML_ERR_INVALID_URI, /* 91 */
XML_ERR_URI_FRAGMENT, /* 92 */
- XML_WAR_CATALOG_PI /* 93 */
+ XML_WAR_CATALOG_PI, /* 93 */
+ XML_ERR_NO_DTD /* 94 */
}xmlParserErrors;
/*