0% found this document useful (0 votes)
62 views2 pages

XML Lab Guide Questions (1)

The document contains a series of exercises for creating well-formed XML documents, including examples for car details, personal information, book information, student data, real estate data, and bookstore information. Each exercise specifies required elements and attributes, as well as the need for sample data and CSS styling. The document serves as a lab guide for students learning XML in a web design course.

Uploaded by

amanyadav672967
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views2 pages

XML Lab Guide Questions (1)

The document contains a series of exercises for creating well-formed XML documents, including examples for car details, personal information, book information, student data, real estate data, and bookstore information. Each exercise specifies required elements and attributes, as well as the need for sample data and CSS styling. The document serves as a lab guide for students learning XML in a web design course.

Uploaded by

amanyadav672967
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

405 – I Web Design II Labguide XML Questions

XML Questions
1. Create a well-formed XML document containing details of a car like: id,
company name, model, engine and mileage.
<?xml version="1.0" encoding="utf-8"?>
<cars>
<car id="c101">
<company>Maruti</company>
<model>Swift</model>
<engine>1248cc</engine>
<mileage>20</mileage>
</car>
<car id="c102">
<company>Hyundai</company>
<model>i20</model>
<engine>1000cc</engine>
<mileage>15</mileage>
</car>
</cars>
Output:

2. Creating a simple XML document with elements of name, DOB, city,


state, pin code, work. Define attribute for the work as title and company
and city. Create a xml document with the same elements with the
attributes.
3. Create another XML file based on above parameters where all the
information should be kept as attributes of a sub element.
4. Write an XML file which will display the Book information which includes
the following: 1) Title of the book 2) Author Name 3) ISBN number 4)
Publisher name 5) Edition 6) Price Enter 10 records.
405 – I Web Design II Labguide XML Questions

5. Design an XML document to store information about a student in an


engineering college affiliated to VNSGU. The information must include
SPID, Name, and Name of the College, Branch, Year of Joining, and email id.
Make up sample data for 10 students. Create a CSS style sheet and use it to
display the document.
6. Create an XML document with the following sample real estate data ▪ Root
element <real-estate> will contain a sequence of sub-elements agencies,
owners, properties and flats. Add at least 10 records.
7. Write an XML file which will display data in following manner. Add at least
10 records.
<book>
<publisher> Addison-Wesley </publisher>
<author> Serge Abiteboul </author>
<author> <first-name> Rick </first-name>
<last-name> Hull </last-name>
</author>
<author> Victor Vianu </author>
<title> Foundations of Databases </title>
<year> 1995 </year>
</book>
8. Create an XML file with root element as ‘bookstore’. Declare elements
name, topic into bookstore. Declare elements name, ISBN attribute of
book into topic. Elements name, title, author as PCDATA. Root element
consist of Mike’s store as name value, topic consist of xml as name
value, ISBN is 120-90-100 attribute of book, title include some contents,
Mike Jervis as author value.

You might also like