Our website uses the Apache Velocity template language. Our Content Management System already checks any generated XML documents for well-formedness. We\'ve been asked to
There is a tool distributed with Velocity called TemplateTool, which dumps all the references and it can be used to validate the syntax of the template.
However, you must have the context setup correctly to verify any template. So the best verification is to write your own tool with your own context.