GLS University Faculty of Computer Applications and IT: 0301406: Introduction To XML Practical Assignment 4
The document outlines 8 practical assignments for an XML course. Each assignment involves creating an XML document and corresponding schema for different data such as exams, meals, students, employees, laptops, books, and cars. The schemas define data types and restrictions for the elements in each XML document.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
63 views2 pages
GLS University Faculty of Computer Applications and IT: 0301406: Introduction To XML Practical Assignment 4
The document outlines 8 practical assignments for an XML course. Each assignment involves creating an XML document and corresponding schema for different data such as exams, meals, students, employees, laptops, books, and cars. The schemas define data types and restrictions for the elements in each XML document.
• All elements are must be in sequence • Apply the proper type for all elements • Marks can not be greater then 100 and less then 28 2. Create XML document for: Starter (juicer/soup), Main Course(Veg Lunch/non veg lunch) , Dessert(Ice-cream/Fruit Salad)
Write a schema for above XML:
• There should be options in each of the categories. • There should be sequence with element 3. Create XML document for: Student Name, Personal Info (Address, Birthdate,Gender, Mobile No, Address) , Result(Total, Percentage, Grade)
Write a schema for above XML:
• Use all to to represent in schema • Gender can have only two option(Male,Female) • Mobile no must be only 10 digit 4. Write a schema for a case where we want to keep the information about the children of employees. One employee can have at the most two children. A child can be a boy or a girl. 5. Write an XML document and corresponding XML schema for maintaining the employee number, name, designation, and salary.
• Restrict the data with all possible values
6. Create the Xml document for: Laptop(Company,Storage,RAM,ROM,Screen,Color,Processor)
Write a schema for above XML:
• Processor can be I3 or I5 • Storage can be 128 or 512 • Company name should not be greater than 8 character • Screen element can have an attribute like size having the the value in decimal 7. Create the Xml document for: Library(Lid,Name,Book,Author,Author,Author,Title,Pageno,Publicatio n)
Write a schema for above XML:
• Author can be multiple • Title should not be greater than 20 character • Page no must be between 80 to 240 • Publication name must be in uppercase only 8. Create the Xml document for: Car(Company,Modelname,Color,Width,Shifting,Registrationno)
Write a schema for above XML:
• Company name should have attribute like logo • Color element have list like : White,Red,Green,Yellow • Registrationno pattern must be : GJ-09-AB-1234