aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-04-15 23:32:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-04-15 23:32:22 +0000
commitf4e5576f8f34362b6bec9396ab073fac839dfb22 (patch)
tree078b3bcd3b37293e85044a0c7b802b4de530b380 /include
parentc58f4efbd44a4b155e5399cbe97525570ebc8385 (diff)
downloadandroid_external_libxml2-f4e5576f8f34362b6bec9396ab073fac839dfb22.tar.gz
android_external_libxml2-f4e5576f8f34362b6bec9396ab073fac839dfb22.tar.bz2
android_external_libxml2-f4e5576f8f34362b6bec9396ab073fac839dfb22.zip
implemented streaming of RelaxNG (when possible) on top of the xmlReader
* relaxng.c xmlreader.c xmllint.c include/libxml/relaxng.h include/libxml/xmlreader.h: implemented streaming of RelaxNG (when possible) on top of the xmlReader interface, provided it as xmllint --stream --relaxng .rng .xml This seems to mostly work. * Makefile.am: updated to test RelaxNG streaming Daniel
Diffstat (limited to 'include')
-rw-r--r--include/libxml/relaxng.h15
-rw-r--r--include/libxml/xmlreader.h4
2 files changed, 19 insertions, 0 deletions
diff --git a/include/libxml/relaxng.h b/include/libxml/relaxng.h
index 3e8de7ab..a21f92c2 100644
--- a/include/libxml/relaxng.h
+++ b/include/libxml/relaxng.h
@@ -104,4 +104,19 @@ void xmlRelaxNGFreeValidCtxt (xmlRelaxNGValidCtxtPtr ctxt);
int xmlRelaxNGValidateDoc (xmlRelaxNGValidCtxtPtr ctxt,
xmlDocPtr doc);
void xmlRelaxNGCleanupTypes (void);
+/*
+ * Interfaces for progressive validation when possible
+ */
+int xmlRelaxNGValidatePushElement (xmlRelaxNGValidCtxtPtr ctxt,
+ xmlDocPtr doc,
+ xmlNodePtr elem);
+int xmlRelaxNGValidatePushCData (xmlRelaxNGValidCtxtPtr ctxt,
+ const xmlChar *data,
+ int len);
+int xmlRelaxNGValidatePopElement (xmlRelaxNGValidCtxtPtr ctxt,
+ xmlDocPtr doc,
+ xmlNodePtr elem);
+int xmlRelaxNGValidateFullElement (xmlRelaxNGValidCtxtPtr ctxt,
+ xmlDocPtr doc,
+ xmlNodePtr elem);
#endif /* __XML_RELAX_NG__ */
diff --git a/include/libxml/xmlreader.h b/include/libxml/xmlreader.h
index de980616..1ced8b85 100644
--- a/include/libxml/xmlreader.h
+++ b/include/libxml/xmlreader.h
@@ -109,6 +109,10 @@ xmlDocPtr xmlTextReaderCurrentDoc (xmlTextReaderPtr reader);
xmlNodePtr xmlTextReaderExpand (xmlTextReaderPtr reader);
int xmlTextReaderNext (xmlTextReaderPtr reader);
int xmlTextReaderIsValid (xmlTextReaderPtr reader);
+#ifdef LIBXML_SCHEMAS_ENABLED
+int xmlTextReaderRelaxNGValidate (xmlTextReaderPtr reader,
+ const char *rng);
+#endif
/*
* Error handling extensions