cars.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cars SYSTEM "cars.dtd">
<cars>
<car>
<make> suzuki </make>
<model> swift </model>
<year> 2010 </year>
<color> white </color>
<engine>
<no_of_cylinder> 4 </no_of_cylinder>
<fuel_system> diesel </fuel_system>
</engine>
<no_of_doors> 4 </no_of_doors>
<transmission_type> paddle shift </transmission_type>
<accessories radio="no"
air_conditioning="no"
power_windows="no"
power_steering="yes"
power_brakes="yes">accessories </accessories>
</car>
<car>
<make> honda </make>
<model> honda city </model>
<year> 2008 </year>
<color> red </color>
<engine>
<no_of_cylinder> 4 </no_of_cylinder>
<fuel_system> petrol </fuel_system>
</engine>
<no_of_doors> 4 </no_of_doors>
<transmission_type> tiptronic </transmission_type>
<accessories radio="yes"
air_conditioning="no"
power_windows="yes"
power_steering="no"
power_brakes="yes">accessories </accessories>
</car>
</cars>
<!DOCTYPE cars SYSTEM "cars.dtd">
<cars>
<car>
<make> suzuki </make>
<model> swift </model>
<year> 2010 </year>
<color> white </color>
<engine>
<no_of_cylinder> 4 </no_of_cylinder>
<fuel_system> diesel </fuel_system>
</engine>
<no_of_doors> 4 </no_of_doors>
<transmission_type> paddle shift </transmission_type>
<accessories radio="no"
air_conditioning="no"
power_windows="no"
power_steering="yes"
power_brakes="yes">accessories </accessories>
</car>
<car>
<make> honda </make>
<model> honda city </model>
<year> 2008 </year>
<color> red </color>
<engine>
<no_of_cylinder> 4 </no_of_cylinder>
<fuel_system> petrol </fuel_system>
</engine>
<no_of_doors> 4 </no_of_doors>
<transmission_type> tiptronic </transmission_type>
<accessories radio="yes"
air_conditioning="no"
power_windows="yes"
power_steering="no"
power_brakes="yes">accessories </accessories>
</car>
</cars>
cars.dtd
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT cars(car+)>
<!ELEMENT car(make,model,year,color,engine,no_of_doors,transmission_type,accessories)>
<!ELEMENT make(#PCDATA)>
<!ELEMENT model(#PCDATA)>
<!ELEMENT year(#PCDATA)>
<!ELEMENT color(#PCDATA)>
<!ELEMENT engine(no_of_cylinders,fuel_systems)>
<!ELEMENT no_of_cylinders(#PCDATA)>
<!ELEMENT fuel_systems(#PCDATA)>
<!ELEMENT no_of_doors(#PCDATA)>
<!ELEMENT transmission_type(#PCDATA)>
<!ELEMENT accessories(#PCDATA)>
<!ATTLIST accessories radio CDATA #REQUIRED>
<!ATTLIST accessories air_conditioning CDATA #REQUIRED>
<!ATTLIST accessories power_windows CDATA #REQUIRED>
<!ATTLIST accessories power_steering CDATA #REQUIRED>
<!ATTLIST accessories power_brakes CDATA #REQUIRED>
<!ELEMENT car(make,model,year,color,engine,no_of_doors,transmission_type,accessories)>
<!ELEMENT make(#PCDATA)>
<!ELEMENT model(#PCDATA)>
<!ELEMENT year(#PCDATA)>
<!ELEMENT color(#PCDATA)>
<!ELEMENT engine(no_of_cylinders,fuel_systems)>
<!ELEMENT no_of_cylinders(#PCDATA)>
<!ELEMENT fuel_systems(#PCDATA)>
<!ELEMENT no_of_doors(#PCDATA)>
<!ELEMENT transmission_type(#PCDATA)>
<!ELEMENT accessories(#PCDATA)>
<!ATTLIST accessories radio CDATA #REQUIRED>
<!ATTLIST accessories air_conditioning CDATA #REQUIRED>
<!ATTLIST accessories power_windows CDATA #REQUIRED>
<!ATTLIST accessories power_steering CDATA #REQUIRED>
<!ATTLIST accessories power_brakes CDATA #REQUIRED>
No comments:
Post a Comment