Create XML document shown in table.

Q12. Create an XML document containing the information shown in the following table:

Book_Name Author Price
.NET Vikash Rs 500/-
Core JAVA Martin Rs 750/-
Basic Grammer Saroj Rs 250/-

Ans.

<?xml version=“1.0” encoding=”UTF-8” standalone=”yes”?>

<books>

<book>

<Book_Name>.Net</Book_Name>

<Author>Vikash</Author>

<Price>Rs 500/-</Price>

</book>

<book>

<Book_Name> Core JAVA </Book_Name>

<Author>Martin</Author>

<Price>Rs 750/-</Price>

</book>

<book>

<Book_Name>Basic Grammar</Book_Name>

<Author>Saroj</Author>

<Price>Rs 250/-</Price>

</book>

</books>

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: