x
 
<?xml version="1.0" encoding="UTF-8" standalone = "no"?>
<!DOCTYPE application
    <!ELEMENT application (from,experience,company,contact,address)>
    <!ELEMENT from (#PCDATA)>
    <!ATTLIST from employee CDATA "no">
    <!ELEMENT experience (#PCDATA)>
    <!ATTLIST experience field CDATA #IMPLIED>
    <!ELEMENT company (#PCDATA)>
    <!ATTLIST company id CDATA #REQUIRED>
    <!ELEMENT contact EMPTY>
    <!ATTLIST contact type (mail|phone|fax) "phone">
    <!ELEMENT address (#PCDATA)>
    <!ATTLIST address name CDATA #FIXED "WoodWorks">
<application>
    <!&mdash;-Default attribute value-->
    <from employee = "yes">Rajeev</from>
<!&mdash;-Implied attribute value. Does not give error without field-->
    <experience field="Metal">8 years</experience>
<!&mdash;-Required attribute value. Gives error without id-->
    <company id="MWW">MulberryWoodWorks</company>
<!&mdash;-Enumerated attribute value. Can select one of them-->
    <contact type="mail" />
<!&mdash;-Throws error if the name is changed-->
    <address name="WoodWorks">34,fyguh,goihpij</address>
</application>