Professional Documents
Culture Documents
Write a XML file which will display the Book information which includes the following.
Title of the book, Author Name, ISBN number, Publisher name, Edition, Price
i. Write a Document Type Definition (DTD) to validate the above XML file.
ii. Write a XSD to validate the above XML file.
Filename: book.xml
<xs:complexType name="bookType">
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="year" type="xs:integer"/>
<xs:element name="price" type="xs:decimal"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>
Basic HTML Programs
1. Create and test an HTML document for yourself, including yourname, address, and electronic
mail address. This document must use several headings and <em>, <strong>, <hr />, <p>, and
<br /> tags and other basic formatting tags.