
<Membership>123456</Membership>
</Customer>
</Root>
To generate the DTD file follow the steps below:
1.Select customer.xml
2.Right-click Generate—>DTD
3.Enter the folder name to store the file.
4.Enter the file name. Click Finish.
See resulting DTD file below.
Example 7-2 Customer DTD
<?xml version='1.0'
(Firstname,Lastname,Email,Membership)
>
<!ELEMENT Email
(#PCDATA)
>
<!ELEMENT Firstname (#PCDATA)
>
<!ELEMENT Lastname (#PCDATA)
>
<!ELEMENT Membership (#PCDATA)
>
<!ELEMENT Root (Customer+)
>
To generate the XSD file follow the steps below:
1.Select Customer.xml.
2.Right-click Generate—>XML Schema.
3.Enter the folder to store the file.
4.Enter the file name. Click Finish.
See resulting XSD file in Example
150 The XML Files: Development of XML/XSL Applications Using WebSphere Studio