Question
need help with question 5.

3- Consider the following relation for published books: BOOK(Book_ title, Author_name, Book_type, List_price, Author_affil, P
0 0
Add a comment Improve this question Transcribed image text
Answer #1

sample XML file :

<?xml version="1.0"?>
<Book>
   <title>Everyday Life</title>
    <author>random name</author>
    <book type="Guide">
    <price>30.00</price>
    <author affiliation="XYZ"></author>
    <publisher>abc Publishers</publisher>
</book>
<title>Best Pasta</title>
    <author>random name</author>
    <book type="COOKING">
    <price>40.00</price>
    <author affiliation="XYZ"></author>
    <publisher>abc Publishers</publisher>
</book>
<title>Haunted House</title>
    <author>random name</author>
    <book type="Horror">
    <price>60.00</price>
    <author affiliation="SRT"></author>
    <publisher>pqr Publishers</publisher>
</book>
<title>Fun with Science</title>
    <author>random name</author>
    <book type="Science">
    <price>20.00</price>
    <author affiliation="VBH"></author>
    <publisher>v publishers</publisher>
</book>

</Book>

publisher par Publishers m title Fun with Science 000 author Giada De Laurentiis Ó book 16 1 <?xml version=1.0?> 2 - <Book

Equivalent JSON File: book.json

[
{
    "title": "Everyday Life",
    "author": "random name",
    "type": "Guide",
    "price": 30.00,
    "author_affiliation": "XYZ",
    "publisher": "abc Publisher"
},
{
   "title": "Best Pasta",
    "author": "random name",
    "type": "Cooking",
    "price": 40.00,
    "author_affiliation": "XYZ",
    "publisher": "abc Publisher"
},
{
"title": "Haunted House",
    "author": "random name",
    "type": "Horror",
    "price": 60.00,
    "author_affiliation": "SRT",
    "publisher": "pqr Publisher"
},
{
"title": "Fun with Science",
    "author": "random name",
    "type": "Science",
    "price": 20.00,
    "author_affiliation": "VBH",
    "publisher": "v Publisher"
}
]

Add a comment
Know the answer?
Add Answer to:
need help with question 5. 3- Consider the following relation for published books: BOOK(Book_ title, Author_name,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT