Closed cboettig closed 10 years ago
It does more checks than that: basically the same reference checking as for eml. To do the validation you can POST a data file to the web service at http://www.nexml.org/nexml/phylows/validator (the name of the parameter for the file is 'file'), and then check the HTTP response code: if validation failed the response value is 400.
@rvosa Is the validator tool on the nexml website, http://www.nexml.org/nexml/phylows/validator, doing more checks than the standard XML schema validation? If so, perhaps we could wrap this as an R function.
i.e. this is true of the EML validator, http://knb.ecoinformatics.org/emlparser/, which checks that any "references" node matches some corresponding "id", etc. For that reason we wrapped the validator in R using RHTMLForms, though a programmatic interface to the validator with structured output would be preferable.
On the other hand, if it's just validating against the NeXML schema we can do that internally with R XML tools.