In: Computer Science
Consider the XML DTD definition below. Write a well-formed and valid XML Document that conforms to this definition.
<!ELEMENT wine-catalog (wine+)>
<!ELEMENT wine (properties,origin,price,year,tasting-note?)>
<!ATTLIST wine
code ID #REQUIRED
name #PCDATA #REQUIRED
classification #PCDATA #REQUIRED
format (375ml|750ml) “750ml”>
<!ELEMENT properties (color,alcohol-content)>
<!ELEMENT color (#PCDATA)>
<!ELEMENT alcohol-content (#PCDATA)>
<!ELEMENT origin (country, region, producer)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT region (#PCDATA)>
<!ELEMENT producer (#PCDATA)>
<!ELEMENT price (#PCDATA)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT tasting-note (#PCDATA)>
THE VALID XML DOCUMENT THAT CONFORMS TO THE GIVEN DEFINATION .
NOTE THAT I HAVE PUT ALL THE VALUES SUCH AS name of the wine etc AS AN EXAMPLE. YOU CAN CHANGE THE VALUES , BUT THE SCHEMA REMAINS SAME .
<!DOCTYPE wine_catalog SYSTEM "wine.dtd">
<wine-catalog>
<wine code="124579" , name = "Red wine" , classification ="smooth-wine" , format ="750ml">
<properties>
<color>red</color>
<alchol-content> 35% </alchol-content>
</properties>
<origin>
<country>swiss</country>
<region>alps mountains</region>
<producer> swiss wines</producer>
</origin>
<price> 1000$ </price>
<year> 1879 </year>
<tasting-note>Incredibly smooth </tasting-note>
<wine>
<wine-catalog>