IBM Version 5 Universal Remote User Manual


 
Chapter 7. Generators 149
5. Enter the XML file name. i.e. passengerList.xml. Click Next.
6. Select
Select file from Workspace option.
7. From Workbench Files box, select passengerList.xsd. Click
Next.
8. Select
Flight as the root name.
9. Select
Create required and optional content. Click Finish
.
Figure 7-4 passengerList.xml
The second way to do it is using the context menu of the passengerList.xsd file:
1. Select
passengerList.xsd.
2. Right-click
Generate—>XML File
3. Enter the folder to store the file.
4. Enter passengerList.xml as file name. Click
Next.
5. Select
Flight as root element.
6. Select
Create required and optional content. Click Finish.
7.2.3 Create DTD/XSD files from XML
Now, let us work in the case that we have an XML file, and we need to create an
schema for it. Application Developer provides two wizards to generate the
schema from the XML file. To show you how to do this, we are going to use the
file Customer.xml which contains the personal data of a customer.
Example 7-1 Customer.xml
<?xml version="1.0" encoding="UTF-8"?>
<Root>
<Customer>
<Firstname>John</Firstname>
<Lastname>Doe</Lastname>
<Email>jdoe@dummy.com</Email>