Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write an XML Schema to validate this XML document: <?xml version=\'1.0\' ?> <ITb

ID: 3634150 • Letter: W

Question

Write an XML Schema to validate this XML document:


<?xml version='1.0' ?>
<ITbooks>
<book age="new">
<title lines="one">XHTML 2nd Edition</title>
<author>Best-seller author.
<firstName>Bob</firstName>
<lastName>Jordan</lastName>
</author>
<summary>XHTML is the new standard of HTML. This book describes the rationale behind XHTML and how it will change HTML as we know it. This book is a must for all HTML programmers who want to keep up with the advances of web technologies</summary>
<tableOfContents>The book is divided into 7 chpaters. The first three discuss the XML and its relationship with HTML. The last four chapters describe, in details, the XHTML elements and their attributes.
</tableOfContents>
<reviewChapter>We are preparing a pre-view chapter of this book to be available on online. Check here again soon!
</reviewChapter>
</book>
<book age="old">
<title>JavaScript</title>
<author>First timer author.
<firstName>Harold</firstName>
<lastName>Smith</lastName>
</author>
<summary>JavaScript is the scripting language of the web. Many believe that JavaScript will replace older programming languages like C, C++, and even Jave. This book introduces JavaScript and its applications.
</summary>
<tableOfContents>There are 10 chapters of this book. Most chapters have detailed and explained examples.
</tableOfContents>
<reviewChapter>We are preparing a pre-view chapter of this book to be available on online. Check here again soon!
</reviewChapter>
</book>
<book age="new">
<title>XML Fundamentals</title>
<author>Runs own company.
<firstName>Mike</firstName>
<lastName>Gordan</lastName>
</author>
<summary>XML is the new technology of the web. It allows you to design and build your own XML markup tags. However, XML is not the same as HTML as many think. XML is whole new way to developing web applications. This book show you how
</summary>
<tableOfContents>We start off with a comparison between XML and HTML. Then we spend time focusing on writing well-formed XML document. Once we learn how to master writing XML documents, we discuss how to format and display them using the CSS technology. The last chapter of the book discusses Document Type Definiton (DTD). All in all there are 12 chapters in the book.
</tableOfContents>
<reviewChapter>We are preparing a pre-view chapter of this book to be available on online. Check here again soon!
</reviewChapter>
</book>
</ITbooks>

Explanation / Answer

Try this link for reference: http://w3schools.com/schema/default.asp Usually, XML schemas rely on the validation of the actual program that runs it. Schemas are simple set of rules in plain text that forces an XML to comply with certain constraints.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote