aboutsummaryrefslogtreecommitdiffstats
path: root/xmlschemas.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-07-13 23:07:49 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-07-13 23:07:49 +0000
commitda0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a (patch)
tree5ee33b648f2be4054990cbaefb9f0a05c2ff8d15 /xmlschemas.c
parent358fef4b1e6721fc9fb6c48a25fbac85cd222d34 (diff)
downloadandroid_external_libxml2-da0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a.tar.gz
android_external_libxml2-da0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a.tar.bz2
android_external_libxml2-da0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a.zip
applied patch from Marcus Boerger to route relaxng and schemas error
* error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h include/libxml/xmlschemas.h: applied patch from Marcus Boerger to route relaxng and schemas error messages when using the reader through the structured interface if activated. * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs to test. Daniel
Diffstat (limited to 'xmlschemas.c')
-rw-r--r--xmlschemas.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/xmlschemas.c b/xmlschemas.c
index afa70105..4411f39f 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -23648,6 +23648,26 @@ xmlSchemaSetValidErrors(xmlSchemaValidCtxtPtr ctxt,
}
/**
+ * xmlSchemaSetValidStructuredErrors:
+ * @ctxt: a schema validation context
+ * @serror: the structured error function
+ * @ctx: the functions context
+ *
+ * Set the structured error callback
+ */
+void
+xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxtPtr ctxt,
+ xmlStructuredErrorFunc serror, void *ctx)
+{
+ if (ctxt == NULL)
+ return;
+ ctxt->serror = serror;
+ ctxt->error = NULL;
+ ctxt->warning = NULL;
+ ctxt->userData = ctx;
+}
+
+/**
* xmlSchemaGetValidErrors:
* @ctxt: a XML-Schema validation context
* @err: the error function result