aboutsummaryrefslogtreecommitdiffstats
path: root/valid.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-16 14:32:41 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-16 14:32:41 +0000
commit2fd8542ca0a1a79cba012670f14e0e201c340fbf (patch)
treede5d964a61a8e90c8a7ca5e4e087b1ecee99cfae /valid.c
parent3237023d6a8036dff817c3d46485ce6495d8ae21 (diff)
downloadandroid_external_libxml2-2fd8542ca0a1a79cba012670f14e0e201c340fbf.tar.gz
android_external_libxml2-2fd8542ca0a1a79cba012670f14e0e201c340fbf.tar.bz2
android_external_libxml2-2fd8542ca0a1a79cba012670f14e0e201c340fbf.zip
make xmlValidateDocument emit a warning msg if there is no DTD, pointed by
* valid.c: make xmlValidateDocument emit a warning msg if there is no DTD, pointed by Christian Glahn Daniel
Diffstat (limited to 'valid.c')
-rw-r--r--valid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/valid.c b/valid.c
index 57c42f01..bee2506b 100644
--- a/valid.c
+++ b/valid.c
@@ -5746,8 +5746,10 @@ xmlValidateDocument(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
int ret;
xmlNodePtr root;
- if ((doc->intSubset == NULL) && (doc->extSubset == NULL))
+ if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
+ VERROR(ctxt->userData, "no DTD found!\n" );
return(0);
+ }
if ((doc->intSubset != NULL) && ((doc->intSubset->SystemID != NULL) ||
(doc->intSubset->ExternalID != NULL)) && (doc->extSubset == NULL)) {
doc->extSubset = xmlParseDTD(doc->intSubset->ExternalID,