* xmlSchemaSetValidStructuredErrors: * @ctxt: a schema validation context * @serror: the structured error function * @ctx: the functions context * * Set the structured error callback */
| 27680 | * Set the structured error callback |
| 27681 | */ |
| 27682 | void |
| 27683 | xmlSchemaSetValidStructuredErrors(xmlSchemaValidCtxtPtr ctxt, |
| 27684 | xmlStructuredErrorFunc serror, void *ctx) |
| 27685 | { |
| 27686 | if (ctxt == NULL) |
| 27687 | return; |
| 27688 | ctxt->serror = serror; |
| 27689 | ctxt->error = NULL; |
| 27690 | ctxt->warning = NULL; |
| 27691 | ctxt->errCtxt = ctx; |
| 27692 | if (ctxt->pctxt != NULL) |
| 27693 | xmlSchemaSetParserStructuredErrors(ctxt->pctxt, serror, ctx); |
| 27694 | } |
| 27695 | |
| 27696 | /** |
| 27697 | * xmlSchemaGetValidErrors: |