changes:
Version 1.6a (7/9/04, again)
* Minor fixes. Replaced dashes in names used as attributes (see
cleanupName().
Version 1.6a (7/6/04, again)
* For XMLBehaviors, implemented ability to retrieve
implementation bodies for behaviors and for ancillaries
(pre-conditions and post-conditions) from a Web address (URL).
Version 1.6a (6/30/04)
* Added generation of behaviors. An XML document can be used to
specify behaviors (methods) to be added to generated sub-class
files, including DBC (design by contract) pre- and
post-condition tests. See generateDS.html for more
information on XMLBehaviors.
Version 1.5b (6/20/04, again)
* Fixed handling namespace prefix in the XMLSchema file itself.
generateDS.py now attempts to pick-up the namespace prefix
(alias) from the "xmlns:" attribute on the "schema" element.
Version 1.5b (5/7/04)
* Fixed several minor problems related to XML namespaces.
Namespace prefix ignored when creating Python names (e.g. of
classes and namespace prefix ignored during parsing. That's
about the best I know to do right now.
* Fixed problems in generating code for names containing dashes.
Now using underscore in place of dashes for Python names.
Version 1.5a (3/24/04)
* Added keyword arguments to the generated factory functions.
* Added generation of method "exportLiteral" and related support
to export elements/instances to Python data structure
literals.
Version 1.4c (3/10/04)
* Element <complexType> in XSchema file not handled correctly.
Fixed this so that when <complexType> is at top level, it will
be handled the same way that an <element> is handled. Note:
We still have problems with <complexType> elements that are
more deeply nested.
Version 1.4c (3/8/04)
* Added ability to pass namespace abbreviation from the command
line. For example, the "-a" option enables you to replace
"xs:" with "xsd:".
Version 1.4b (9/30/03, again)
* Removed dependence on PyXML. Will now import XML support from
PyXML, if it is available, but if not, imports from the
Python standard library.
Also, rename the installed link generateDS${PYVERSSUFFIX} to allow
installations with different Python versions.
Version 1.4a (9/17/03)
* Added generation of a SAX parser.
Version 1.3c (9/11/03)
* Fixed problem caused by shared content model, i.e. when a
field (content) is declared with a complex type and the name
and the type are different. The fix enabled the field name
and the type of the object in that field to be different.
changes:
Version 1.3b (9/9/03)
* Fixed error when a separate xs:element declaration is used for
elements declared with a simple type.
Version 1.3a (8/18/03)
* Removed YAML support.
* Fixed error in name generation in generateBuildFn().
* Various fixes and cleanup in tests/ and Demo/.
generateDS.py generates Python data structures (for example, class
definitions) from an XML Schema document. These data structures represent
the elements in an XML document described by the XML Schema. In addition, a
separate file containing subclasses (stubs) is optionally generated. The user
can add methods to the subclasses in order to process the contents of an XML
document.