Question

HTML 5 The following is a given XML code <?xml version="1.0" encoding="UTF-8"?> <book> <title>Everyday Italian</title> <author>Giada...

HTML 5

The following is a given XML code
<?xml version="1.0" encoding="UTF-8"?>
<book>
<title>Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
title, author, year, price must be in order.
Write a xsd code and give them the specific type and then run online http://www.utilities-online.info/xsdvalidation/#.Wtd1j4jwZPY
show validity which similar to the following

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The XSD for give XML is:

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="title"/>
<xs:element type="xs:string" name="author"/>
<xs:element type="xs:short" name="year"/>
<xs:element type="xs:float" name="price"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Add a comment
Know the answer?
Add Answer to:
HTML 5 The following is a given XML code <?xml version="1.0" encoding="UTF-8"?> <book> <title>Everyday Italian</title> <author>Giada...
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
  • The following XML document describes a selection of books from a library. <?xml version="1.0" encoding="UTF-8" ?>...

    The following XML document describes a selection of books from a library. <?xml version="1.0" encoding="UTF-8" ?> <!-- file name: library.xml --> <library> <book category="COOKING"> <title lang="en">My Kitchen Year</title> <author>Ruth Reichl</author> <year>2015</year> <price>35.00</price> <pages>352</pages> </book> <book category="CHILDREN"> <title lang="en">Harry Potter</title> <author>J. K. Rowling</author> <year>2005</year> <price cover="soft">29.99</price> </book> <book category="XML"> <title lang="en">XQuery Kick Start</title> <author>Brian Benz</author> <author> John Durant</author> <year>2003</year> <price cover="hard">149.99</price> <pages>984</pages> </book> <book category="XML"> <title lang="en">XML Primer</title> <author> Nicholas Chase</author> <year>2002</year> <price>39.95</price> <pages>1024</pages> <description> I highly recommend this book. It's...

  • 1. Write an XML Schema for the following XML file satisfying the following requirements: a) comment...

    1. Write an XML Schema for the following XML file satisfying the following requirements: a) comment element is required; b) publisher element should be of xsd:string type; c) price elements should be of xsd:float type. Validate the xml file against your XML Schema using the online validator: http://tools.decisionsoft.com/schemaValidate/. <?xml version="1.0"?> <bib> ​<comment>These books are still relevant </comment> ​<book year="1994"> ​​<title>TCP/IP Illustrated</title> ​​<author> ​​​<last>Stevens</last> ​​​<first>Tim</first> ​​</author> ​​<publisher>Addison-Wesley</publisher> ​​<price discount="yes"> 65.95</price> ​</book> ​<book year="2003"> ​​<title>Learning XML</title> ​​<author> ​​​<last>Erik</last> ​​​<middle >T</middle > ​​​<first>Ray</first>...

  • <?xml version="1.0" encoding="UTF-8" standalone="no" ?> (please fix xml code!!) <!-- New Perspectives on XML Tutorial 2...

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?> (please fix xml code!!) <!-- New Perspectives on XML Tutorial 2 Case Problem 2 MDPBA Competition Roster Author: Chris Dawkins Date: 7/26/19 Filename: mdpba.xml --> <!DOCTYPE bands [    <!ELEMENT bands (band+)>    <!ELEMENT band (name, city, logo?, competition)    <!ELEMENT name (#PCDATA)>    <!ELEMENT city (#PCDATA)>    <!ELEMENT logo EMPTY>    <!ELEMENT competition (event, event) ] <bands name="Midwest Developmental Pipe Band"> <band cid="c0001"> <name grade="juvenile">School of Celtic Bagpipes &amp; Drumming</name> <city>Delafield</city> <logo source="celtic" />...

  • This is my code so far: <!DOCTYPE html> <html> <head> <title>JavaScript is fun</title> <meta charset="utf-8" />...

    This is my code so far: <!DOCTYPE html> <html> <head> <title>JavaScript is fun</title> <meta charset="utf-8" /> </head> <body> <script type ="text/javascript"> //declare a variable and store text in it var x = "JavaScript is fun"; //write the variable 5 times document.write(x + x + x + x + x); //store 5 as string in variable x x = "5"; //store 3 as string in variable y var y = "3"; //write the value x + y to the document document.write("<br>");...

  • Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />...

    Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>Daniel's Movie Page</title> </head> <body> <a href="hobbies.html">Hobbies</a> <h1>Movies and Actors</h1> <ol> <li class="ol-list1">Gravity</li> <li>Avenger</li> <li>Marshal</li> <li>Interstellar</li> <li>Dark Knight</li> <li>Superman</li> </ol> <ul> <li class="ul-list1">Robet Downey jr.</li> <li>Sharuk Khan</li> <li>Ranbir Kapoor</li> <li>Sidhhart Malhotra</li> <li>Angela Joli</li> <li>Leonardo DiCaprio/li> </ul> <h2>Favorite Movie</h2> <p> <b>Gravity:</b> The movie portrayed what happens to an astronaut if he/she is pushed away from spaceship.It was terrifying how much...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

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