Python: there is a way to generate xsd files based on xml examples

I have a list of xml examples that I would like to include in schemas (xsd files). Exactly what the trang tool does (http://www.thaiopensource.com/relaxng/trang.html). I don't like calling trang from my script (doing os.system('java -jar trang...')) - is there a python package that I can use instead?

+3
source share
1 answer

If you are using Jython (http://jython.org/), you can import trang and run it inside.

0
source

Source: https://habr.com/ru/post/1767745/


All Articles