A book store maintains the list of all its Books using XML. A Book consists of an ISBN number, which can be used as its attribute in the XML document. The following information is stored about the Book - book title, list of authors, name of the publisher and price of the Book. Create an XML document containing information of five Books. Also create the DTD to verify the XML document created by you
<catalog>
<book id="1">
<title>Harry Potter</title>
<author>Rowley</author>
<price>34</price>
</book>
<book id="2">
<title>Sherlock Holmes</title>
<author>Arthur</author>
<price>12</price>
</book>
<book id="3">
<title>Moonwalking with Einstein</title>
<author>Downey</author>
<price>14</price>
</book>
<book id="4">
<title>Homosapience</title>
<author>Harari</author>
<price>18</price>
</book>
<book id="5">
<title>How to lie with statistics</title>
<author>FooBar</author>
<price>5</price>
text1
</book>
</catalog>
Comments
Leave a comment