Problem Statement:

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

Source Code:

ex2.xml

Output:

Click here for output