I recommend generating schemas by hand for full understanding and full control over the constraints. However, here are some automated tools that can jumpstart the process:
Related and also very useful:
No, the standards are different between the two.
But if you really want to rely on the xsd for validating, Jsonix Schema Compiler can help you generate a JSON Schema to validate your json from your XML Schema.
Read more here: Source link