* xmlTextReaderRelaxNGValidate: * @reader: the xmlTextReaderPtr used * @rng: the path to a RelaxNG schema or NULL * * 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. * * Returns 0 in case the schemas validation could be (de)activated and * -1 i
| 4524 | * -1 in case of error. |
| 4525 | */ |
| 4526 | int |
| 4527 | xmlTextReaderRelaxNGValidate(xmlTextReaderPtr reader, const char *rng) |
| 4528 | { |
| 4529 | return(xmlTextReaderRelaxNGValidateInternal(reader, rng, NULL, 0)); |
| 4530 | } |
| 4531 | |
| 4532 | #endif |
| 4533 |