IBM Version 5 manual Xml Dtd/Xsd, Create an XML file from a DTD file

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 163
Image 163

Figure 7-2 passengerList.xsd

7.2 XML <—> DTD/XSD

There are several ways to create XML files using Application Developer. Now we are going to discuss how to:

￿Create an XML file from DTD file

￿Create an XML file form XSD file

￿Create a DTD file from an XML file

￿Create XSD from an XML file

This options are very convenient if you have an existing rules file that details how the new XML file should look. By letting the XML file be created based on these rules, you automatically get a coded skeleton for the file. The option to create XML files from these file types is also available from the context menu of DTD and XML Schema files. XML files are placed in an existing folder under any project type. If you plan to create JavaBeans from your DTD files then this should be a Java project.

7.2.1 Create an XML file from a DTD file

There are two ways to create an XML file from a DTD file. The first one is using the Create XML File wizard:

1. Open XML perspective if necessary.

Chapter 7. Generators 147

Page 163
Image 163
IBM Version 5 manual Xml Dtd/Xsd, Create an XML file from a DTD file