Figure 9-12 Database Connection panel

9.2.2 Generate DTD file

In addition to the XSD Editor, WebSphere Studio Application Developer also has the DTD Editor. We refer to both XSD and DTD as schemas. Application Developer has extensive support for schemas, including tools for validating schemas, converting between XSD and DTD, generating schemas from sample XML instance documents, generating sample XML documents from schemas, and generating Java classes and relational database schemas from XML Schema.

Now that we have our XML Schema we have to generate the DTD file since DB2 XML Extender only supports DTD. We need the DTD file because it is going to be useful when mapping our output message format elements to the database fields in “Generate an XSL file” on page 186.

Select the Navigator view and right-click

passengerList.xsd—>Generate—>DTD (Figure 9-13).

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

Page 210
Image 210
IBM Version 5 manual Generate DTD file, PassengerList.xsd-Generate-DTD Figure