Overview
One of the editors for TEI/XML is LEAF-WRITER.
https://leaf-writer.leaf-vre.org/

It is described as follows:
The XML & RDF online editor of the Linked Editing Academic Framework
The GitLab repository is below.
https://gitlab.com/calincs/cwrc/leaf-writer/leaf-writer
One of the features of this tool is described as:
continuous XML validation
This validation appears to use the following API.
https://validator.services.cwrc.ca/
The library seems to be:
https://www.npmjs.com/package/@cwrc/leafwriter-validator
This time, I tried the above API.
Testing
The following page is displayed.
https://validator.services.cwrc.ca/

I tested the following with the Try It POST function.
Schema URL: https://raw.githubusercontent.com/nakamura196/test2021/main/tei_excel.rng Schema Type: RNG_XML Document Content:
The above would not produce an error when using http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng as the schema, but should produce an error with https://raw.githubusercontent.com/nakamura196/test2021/main/tei_excel.rng which limits the available tags.
Please also refer to the following.
As a result, an error was returned as shown below. The reason that the name tag is incorrectly used was also returned.
Summary
I hope this is helpful for implementing TEI/XML validation functionality.