Re: Converting XML Schema to data struture and then to XML
"Martin v. Löwis" <[email protected]> Mon, 10 Mar 2008 08:06:31 +0100
| Newsgroups | gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
> BTW, from the POV of objectify, generating Python classes from a schema would > basically mean infering a document instance from an XML Schema (sort of a > meta-model to model transformation). I find that an interesting relation, but > maybe that's just me... It's just you. It would *not* be a meta-model to model transformation, but a meta-model-to-meta-model one. The schema defines a type system, just as a set of Python classes does. Instances of the schema (i.e. a document) then correspond to a set of instances of these classes. It's a very natural thing to do, and has been done in other languages dozens of time. It gives the term "document type" a true representation in the programming language. Regards, Martin _______________________________________________ XML-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/xml-sig