validate#
- astropy.io.votable.validate(source, output=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>, xmllint=False, filename=None)[source]#
 Prints a validation report for the given file.
- Parameters:
 - sourcepython:path-like object or python:file-like object
 Path to a VOTABLE xml file or
Pathobject having Path to a VOTABLE xml file. If file-like object, must be readable.- outputpython:file-like object, optional
 Where to output the report. Defaults to
sys.stdout. IfNone, the output will be returned as a string. Must be writable.- xmllintbool, optional
 When
True, also send the file toxmllintfor schema and DTD validation. Requires thatxmllintis installed. The default isFalse.sourcemust be a file on the local filesystem in order forxmllintto work.- filename
python:str, optional A filename to use in the error messages. If not provided, one will be automatically determined from
source.
- Returns:
 - is_validbool or 
python:str Returns
Trueif no warnings were found. IfoutputisNone, the return value will be a string.
- is_validbool or