Problem Statement:

Create a valid XML document containing details of a car like: id, company name, model, engine and mileage using XML Schema.

Source Code:

ex3.xml

ex3.xsd

Output:

Click here for output