Problem Statement:

Create a well-formed XML document containing details of a car like: id, company name, model, engine and mileage.

Source Code:

ex1.xml

Output:

Click here for output