Professional Documents
Culture Documents
Exercise 01:: Commodity
Exercise 01:: Commodity
Products:
We want to export this data into an XML file. Write a DTD describing the
following structure for the XML file:
- Each store element contains one name, and one phone as attributes,
and a sequence of product subelements, one for each product that the
store sells. Also, it has an attribute sid of type ID.
- Each product element contains one name, one price, one description, and one
sell element, plus an attribute pid of type CDATA.
Exercise 02:
<bank>
<account account-number=“A-101” branch-name=“Downtown” balance=“500”>
</account>
<account account-number=“A-102” branch-name=“Perryridge” balance=“400”>
</account>
<account account-number=“A-201” branch-name=“Brighton” balance=“900”>
</account>
<customer customer-name=“Johnson” customer-street=“Alma” customer-city=“Palo
Alto”>
</customer>
<customer customer-name=“Hayes” customer-street=“Main” customer-city=“Harrison”>
</customer>
<depositor account-number=“A-101” customer-name=“Johnson”></depositor>
<depositor account-number=“A-201” customer-name=“Johnson”></depositor>
<depositor account-number=“A-102” customer-name=“Hayes”></depositor>
</bank>
Exercise 03:
Exercise 04: