Python: Is there a way to generate xsd files based on xml examples
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.
精彩评论