validate¶
-
astropy.io.votable.
validate
(source, output=None, xmllint=False, filename=None)[source]¶ Prints a validation report for the given file.
- Parameters
- sourcestr or readable file-like object
Path to a VOTABLE xml file or pathlib.path object having Path to a VOTABLE xml file.
- outputwritable file-like object, optional
Where to output the report. Defaults to
sys.stdout
. IfNone
, the output will be returned as a string.- xmllintbool, optional
When
True
, also send the file toxmllint
for schema and DTD validation. Requires thatxmllint
is installed. The default isFalse
.source
must be a file on the local filesystem in order forxmllint
to work.- filenamestr, optional
A filename to use in the error messages. If not provided, one will be automatically determined from
source
.
- Returns