简体   繁体   中英

Generate XML schema(XSD) from JSON schema

Does anybody know how to generate a XML schema(XSD file) from an existing JSON schema? Are there any tools available for this? On-line tools are preferred, I have found a free trial tool called Altova. THX.

Looks like you found the Altova suite of tools. Those are great, but they're not free.

There are a couple of ways to go about this, that I can think of.

  1. There's jsons2xsd - note, I have not used that, so I can't say anything about it; but it looks like the lib is under active development, which is good.
  2. A possible roundabout way of getting your XSD is to start with a json doc (not the jsonschema) that's pretty complete and conformant to your jsonschema, use any of a multitude of json to xml converter s, and convert your xml to xsd ( one such tool here ).

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM