开发者

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

开发者 https://www.devze.com 2023-01-18 18:33 出处:网络
I have a list of xml examples I would like to turn into schemas (xsd files). Exactly what the trang tool does (http://开发者_Go百科www.thaiopensource.com/relaxng/trang.html). I don\'t like calling tra

I have a list of xml examples I would like to turn into schemas (xsd files). Exactly what the trang tool does (http://开发者_Go百科www.thaiopensource.com/relaxng/trang.html). I don't like calling trang from my script (i.e doing os.system('java -jar trang...')) - is there a python package I can use instead?


If you are running Jython (http://jython.org/) then you could import trang and run it internally.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号