7.1 DTD <—> XSD

WebSphere Studio Application Developer offers the developer the ability to transform your XSD file to a DTD file or a DTD file to a XSD file, so whether you start is a matter of in which schema you feel more comfortable. We are going to use the DTD file shown in Figure 7-1.

Figure 7-1 passengerList.dtd

Having the passengerList.dtd file, we can generate the corresponding XSD file using the generator following the next steps:

1.Select passengerList.dtd

2.Right-clickGenerate—>XML Schema

3.Select the folder to store the file. In this example it is Generators.

4.Click Finish.

The resulting XSD file is shown in Figure 7-2 on page 147.

146 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 162
Image 162
IBM Version 5 manual Dtd Xsd, Select passengerList.dtd Right-clickGenerate-XML Schema, Click Finish