Would JSON or XML schema be useful for doing the same job?