-:Welcome in All Online Learning:-


Computer Tutorials & Programming
DTD,XML Schema
Topic View/Download
Simple XML Example View/Download
XML Validator-XMLlint View/Download
XML Validator-XMLlint Example View/Download
Create an external DTD file for a Newspaper information satisfying the following requirements (elements and attribute names are given in italics, Newspaper is the root): • A Newspaper must contain at least one Article. • Each Article should be a sequence (one and exactly one sequence) of Headline, Byline, Lead, Body, and Notes. • Each Headline, Byline, Lead, Body, and Notes will contain parseable character data. • The Article will have four attributes, Author, Editor, Date, and Edition. Among them, Author and Editor are strictly required, and, Date and Edition are optional. Write an example XML file satisfying the necessary constraints, and validate the file against the DTD file. 2. Write an Example XML file having CATALOG as root element satisfying the following DTD. Proof the correctness of your DTD file as well. View/Download
Create a W3C schema about information regarding the characters described in a book satisfying the following requirements: • book will be the root element. • book must have an attribute named isbn, which must be a number having 10 digits. • The root element will have title (must occur exactly once), author (must occur exactly once), character (may occur any number of times including 0) elements in sequence. • The title is a string. • The author is a string. • Each character will further have sub-elements name (must occur exactly once), type (must occur exactly once), and location (must occur exactly once) in sequence. • name is a string and can be of atmost length 10. This element can have an optional attribute king-of, whose value can be string. The value of king-of must start with a capital letter followed by lowercase letters or space, and of atleast length 3. • type is a string that can take values only from Men, Elves, Dwarves, or Orcs. • location must have the fixed value of Middle-earth. 2. Prepare an XML file conforming to the schema desribed above with atleast two characters, and prove the vaidity using xmllint application. View/Download
more...
www.allonlinelearning.com