xmlTextReaderEr
xmlChar * xmlTextReaderReadString (xmlTextReaderPtr reader)
int xmlTextReaderRelaxNGSetSchema (xmlTextReaderPtr reader,
xmlRelaxNGPtr schema)
int xmlTextReaderRelaxNGValidate (xmlTextReaderPtr reader,
const char * rng)
+int xmlTextReaderRelaxNGValidateCtxt (xmlTextReaderPtr reader,
xmlRelaxNGValidCtxtPtr ctxt,
int options)
int xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
const char * xsd)
int xmlTextReaderSchemaValidateCtxt (xmlTextReaderPtr reader,
xmlSchemaValidCtxtPtr ctxt,
int options)
void xmlTextReaderSetErrorHandler (xmlTextReaderPtr reader,
xmlTextReaderErrorFunc f,
void * arg)
@@ -303,8 +304,10 @@ void xmlTextReaderErrorFunc (void * arg,
reader: | the xmlTextReaderPtr used |
Returns: | a string containing the contents of the Element or Text node, or NULL if the reader is positioned on any other type of node. The string must be deallocated by the caller. |
Function: xmlTextReaderRelaxNGSetSchema
int xmlTextReaderRelaxNGSetSchema (xmlTextReaderPtr reader,
xmlRelaxNGPtr schema)
Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.
reader: | the xmlTextReaderPtr used |
schema: | a precompiled RelaxNG schema |
Returns: | 0 in case the RelaxNG validation could be (des)activated and -1 in case of error. |
Function: xmlTextReaderRelaxNGValidate
int xmlTextReaderRelaxNGValidate (xmlTextReaderPtr reader,
const char * rng)
-
Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @rng is NULL, then RelaxNG validation is deactivated.
-reader: | the xmlTextReaderPtr used |
rng: | the path to a RelaxNG schema or NULL |
Returns: | 0 in case the RelaxNG validation could be (de)activated and -1 in case of error. |
Function: xmlTextReaderSchemaValidate
int xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
const char * xsd)
+
Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is NULL, then RelaxNG schema validation is deactivated.
+reader: | the xmlTextReaderPtr used |
rng: | the path to a RelaxNG schema or NULL |
Returns: | 0 in case the schemas validation could be (de)activated and -1 in case of error. |
Function: xmlTextReaderRelaxNGValidateCtxt
int xmlTextReaderRelaxNGValidateCtxt (xmlTextReaderPtr reader,
xmlRelaxNGValidCtxtPtr ctxt,
int options)
+
Use RelaxNG schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then RelaxNG schema validation is deactivated.
+reader: | the xmlTextReaderPtr used |
ctxt: | the RelaxNG schema validation context or NULL |
options: | options (not used yet) |
Returns: | 0 in case the schemas validation could be (de)activated and -1 in case of error. |
Function: xmlTextReaderSchemaValidate
int xmlTextReaderSchemaValidate (xmlTextReaderPtr reader,
const char * xsd)
Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated.
reader: | the xmlTextReaderPtr used |
xsd: | the path to a W3C XSD schema or NULL |
Returns: | 0 in case the schemas validation could be (de)activated and -1 in case of error. |
Function: xmlTextReaderSchemaValidateCtxt
int xmlTextReaderSchemaValidateCtxt (xmlTextReaderPtr reader,
xmlSchemaValidCtxtPtr ctxt,
int options)
Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated.