Skip to main content

validate_document

Function validate_document 

Source
pub unsafe fn validate_document(
    ctxt: *mut _xmlValidCtxt,
    doc: *mut _xmlDoc,
) -> c_int
Expand description

Validate an entire document against its DTD.

§UPSTREAM-PARITY

int xmlValidateDocument(xmlValidCtxtPtr ctxt, xmlDocPtr doc);

Validates the root element and all its descendants, plus the DTD itself.

Returns 1 if valid, 0 otherwise.

§SAFETY

  • ctxt, doc may be NULL.