bool axl_dtd_validate ( axlDoc doc,
axlDtd dtd,
axlError **  error 
)

Allows to validate the given XML document (axlDoc) against the given document type definition (DTD, axlDtd).

This function allows to validate your XML documents providing the document type definition, that was read using axl_dtd_parse or axl_dtd_parse_from_file.

Keep in mind that a document could be well-formed and valid. The only difference is that valid XML document are those that, meet all XML rules, but also are clasified and recognized as XML documents with some particular structure, that is represented (or constrained) with providing a DTD definition.

Parameters:
doc The axlDoc containing the XML document to be validated.
dtd The axlDtd containing the DTD definition used to validate the document.
error An optional reference to a axlError object where validation errors are reported.
Returns:
true if the document is valid, false if not.