DTD Export by Johan Wester
The script converts all classes in package "Data Dictionary" to a DTD. It is modelled XML as follows:
- XML Data element = Rose class
- Content of XML data element = Associations from parent XML data element to
child XML data elements
- Optionality of XML Data element = multiplicity of association
A superclass is converted to a subelement of an XML data element.
E.g. data -> orderdate is in XML <orderdate><date> ... </date></orderdate>
The name of the package is hard-wired in the script, a better way would be to loop
through all classes an only convert classes with a certain stereotype, e.g."<<XML>>" to the DTD. It is very easy to adapt the script for that.
Download (3KB) (16-Dec-99)
www.rationalrose.com/scripts/dtd_export.ebs |