diff --git a/doc/xmllint.xml b/doc/xmllint.xml
index a133d9c48..2da3e4785 100644
--- a/doc/xmllint.xml
+++ b/doc/xmllint.xml
@@ -228,8 +228,8 @@
- Determine if the document is a well-formed, but has namespace
- errors. This enforces namespace-well-formedness.
+ Return an error if the document is well-formed, but has namespace
+ errors. This enforces namespace-well-formedness.
@@ -1005,7 +1005,7 @@
4
- Validation error
+ Document isn't well-formed or couldn't be read
diff --git a/xmllint.c b/xmllint.c
index fa1358de7..62f9ff838 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -91,7 +91,7 @@ typedef enum {
XMLLINT_ERR_UNCLASS = 1, /* Unclassified */
XMLLINT_ERR_DTD = 2, /* Error in DTD */
XMLLINT_ERR_VALID = 3, /* Validation error */
- XMLLINT_ERR_RDFILE = 4, /* CtxtReadFile error */
+ XMLLINT_ERR_RDFILE = 4, /* Wellformedness or IO error */
XMLLINT_ERR_SCHEMACOMP = 5, /* Schema compilation */
XMLLINT_ERR_OUT = 6, /* Error writing output */
XMLLINT_ERR_SCHEMAPAT = 7, /* Error in schema pattern */