Question: As an XML developer, you are required to model a system for an online used vehicle shop. After an interview with the shop manager you

As an XML developer, you are required to model a system for an online used vehicle shop. After an interview with the shop manager you have the following information: 

 

  • The details of the vehicle shop include shop name, address, telephone number, website address (URL), and logo (image).

 

  • The vehicle shop has the following types of items for sale: hatchback, sedan, suv,etc. Each item has a brand name, an item number, description, quantity and price. 

 

  • A car can be electric, hybrid electric or fuel vehicle. A car has information about manufacturer, carType(electrice/hybrid/fuel), color, dimension, etc. 

 

1. Analyse the above-motioned scenario. Prepare data in XML, and add additional information you wish to record. Draw your document structure(tree diagram). You should include:

  • At least 15 data and maximum 20
  • At least 5 attributes and maximum 10 

At least 5 optional data field.


2. Using the above and additional information, and the data structure from question 1, create an XML document and name it catalog_studentID.xml. (e.g. catalog_03047791.xml). (use real time scenario) 

Based on the structure of catalog_studentID.xml, create a schema file(external) named catalog _studentID.xsd. Apply catalog_studentID.xsd to the contents of catalog_studentID.xml.

3. Create a CSS file called catalog_studentID.css to render your XML data file in a web browser.                                                                                                     

  • Create a list 
  • Create at least one border 
  • Use at least two different font sizes and font families. 
  • Use two different font colors, at least one of which is defined using RGB values.
  • Display the logo image.
  • Use at least one floating box 

Step by Step Solution

3.49 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question is complete and detailed Lets proceed to create the needed XML solution with a full ste... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!