validate_schema

astropy.utils.xml.validate.validate_schema(filename, schema_file) [edit on github][source]

Validates an XML file against a schema or DTD.

Parameters :

filename : str

The path to the XML file to validate

schema : str

The path to the XML schema or DTD

Returns :

returncode, stdout, stderr : int, str, str

Returns the returncode from xmllint and the stdout and stderr as strings

Page Contents