Slip 25 - A) Write a script to create “vehicle.xm1” file with multiple elements as given below Name >-------- - - ------ Also add Type = “Four Wheeler” and its elements

 Solution:

<?xml version="1.0" encoding="utf-8"?>
<Vehicle>
<Type = Two Wheeler>
<Vehicler Name >honda </Vehicle Name >
<Company>hero </Company>
<Color>black </Color>
<Average>60 Kmpl </Average>
</Type>

<Type = Three Wheeler>
<Vehicler Name >Auto rickshaws </Vehicle Name >
<Company>Bajaj Autorickshaw </Company>
<Color>yellow </Color>
<Average>50kmpl </Average>
</Type>

<Type = four Wheeler>
<Vehicler Name >maruti </Vehicle Name >
<Company>tata </Company>
<Color>white </Color>
<Average>60kmpl</Average>
</Type>
</Vehicle>

Post a Comment

0 Comments