Chayan XML
Chayan XML
<College>
<Student>
<firstname> Chayan</firstname>
<Address>
<state>West Bengal</state>
</Address>
</Student>
</College>
Output:
Input:
<Employee>
<Name>
<First-name> Chayan</First-name>
</Name>
<Contact>
</Contact>
<Address>
</Address>
</Employee>
Output:
Input:
<Book-info>
<Author-name>Heather Williamson</Author-name>
<ISBN-number>007044725X</ISBN-number>
<Edition>July, 2024</Edition>
<Price>Rs 690.00</Price>
</Book-info>
Output:
Input:
<?xml version="1.0" encoding="UTF"?>
<Bookstore>
<book category="cooking">
</book>
<book category="children">
</book>
<book category="web">
</book>
</Bookstore>
Output:
5. Create a valid XML document with at least five details of breakfast
menu like: name,price,description,calories.
Input:
<?xml version="1.0" encoding="UTF"?>
<menu>
<food>
<description> Two of our famous Belgian waffles with plenty of real maple syrup </description>
<calories>
<fat>"7.7" </fat>
<total>"310"</total>
</calories>
<vitamins>
<a> 7 </a>
<c> 0 </c>
</vitamins>
</food>
<food>
<description> Light Belgian waffles covered with strawberries and whipped cream </description>
<calories>
<fat>"6.7" </fat>
<total>"410"</total>
</calories>
<vitamins>
<a> 3 </a>
<c> 9 </c>
</vitamins>
</food>
</menu>
Output:
6. Write a XML document for Customer with following details:Name(first
name and last name),address(post,dist,state and
pin),product(name,price),order date.
Input:
<Customer-info>
<Name>
</Name>
<address>
</address>
<product>
</product>
</Customer-info>
Output: