Features
- generateDS.py generates Python data structures from an Xschema document. It generates a file containing: (1) a Python class for each element definition and (2) parsers (which use the Python lxml library) for XML documents that satisfy the Xschema document. The class definitions contain: - A constructor with initializers for member variables. - Get and set methods for member variables. - A 'build' method used during parsing to populate an instance. - An 'export' method that will re-create (write out) the XML element in an XML document. - Etc. See ``generateDS.txt``/``generateDS.html`` for information about more capabilities, how to use it, etc.
Follow generateds
You Might Also Like
Rate This Project
Login To Rate This Project
User Reviews
-
Hi folks, generateDS is excellent library! I used it to get py objects from rigid XSD schema. One command line execution and the whole thing was there. It took a bit of time to figure out how to utilize all of the py generated stuff but it was not that hard. I modified code base a bit but stuff delivered precise XML output and it was 100X better solution than creating XML from scratch. Thank you for your work - Sasha Kacanski