Chapter 9

XML DTD Add-In

The Rational Rose XML DTD Add-in provides visualization, modeling, and code generation to create XML document type definitions (DTD) for use in your application. You can reverse engineer an existing XML DTD to visualize a DTD's structure using a Rose class diagram. After modeling an XML DTD, you can use the Syntax Checker to validate your XML DTD. From the valid XML DTD model, you generate code to create a new XML DTD.

In addition to reverse engineering an existing XML DTD, you can model a DTD using Rose class stereotypes for XML elements, element attributes, entities, and notations. By modeling an XML DTD, you can visualize the structure of the document to see which element definitions to change or remove. You can also share your XML DTD model with members of your development team to verify that you have captured the XML document requirements.

An XML DTD syntax checker finds errors in the XML DTD model, allowing you to make corrections before the DTD before is implemented. Use the Generate Code feature to produce an XML DTD that you can test or implement in your environment.

To support mapping XML to UML, Rational Rose extends UML with stereotypes for XML elements, element attribute lists, entities, and notations. Stereotypes also represent XML operator symbols, sequence lists, choice lists, and element and element attribute multiplicity.


Note:
DTDElementANY cannot be nested. Use this DTDElement at the root level.


Known XML DTD Add-In Problems and Limitations

The following table lists known XML DTD problems or limitations in Rose for UNIX/Linux.

Table 7 Known XML DTD Add-In Limitations
Defect
Description
11382

File extension case sensitive on UNIX after generating code.
Reverse engineering and then generating code on *.DTD file, does not generate code to existing *.DTD but creates a new *.dtd file (case sensitive) on UNIX.

31719

Apply tab remains unabled.


Fixed XML DTD Add-In Defects

The following table list defects that have been fixed in this release.

Table 8 Fixed XML DTD Add-In Defects
Defect
Description
11524

When an XML DTD is reverse engineered and then forward engineered, the order of the data may be changed.

15062

Two copies of the R2Editor will start if browsing source when multiple classes are selected. This occurs from the XML and CORBA Add-In's.


      

Rational Support

techpubs@rational.com
Copyright © 2001, Rational Software Corporation. All rights reserved.