zadania_domowe_WDI/zad_dom6/3/dodane_dtd.xml
2024-12-06 21:30:48 +01:00

67 lines
1.5 KiB
XML

<!DOCTYPE spis_powszechny[
<!ELEMENT spis_powszechny (date,address,person+)>
<!ELEMENT date (year, month,day)>
<!ELEMENT year (#PCDATA)>
<!ELEMENT month (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT address (street, city, county, country, postalcode)>
<!ELEMENT street (#PCDATA|unit)*>
<!ELEMENT unit (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT county (#PCDATA)>
<!ELEMENT country (#PCDATA)>
<!ELEMENT postalcode (#PCDATA)>
<!ELEMENT person (name, age, gender)>
<!ELEMENT name (first, last, junior?)>
<!ELEMENT first (#PCDATA)>
<!ELEMENT last (#PCDATA)>
<!ELEMENT junior (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT gender (#PCDATA)>
<!ATTLIST spis_powszechny rachmistrz CDATA #REQUIRED>
<!ATTLIST person employed (fulltime|parttime) #IMPLIED>
<!ATTLIST person id CDATA #REQUIRED>
]>
<spis_powszechny rachmistrz="3163">
<date>
<year>2021</year>
<month>5</month>
<day>11</day>
</date>
<address>
<street>
Lane 111
<unit>4</unit>
</street>
<city>Big City</city>
<county>Greenwood</county>
<country>Ooo</country>
<postalcode>88-112</postalcode>
</address>
<person employed="fulltime" id="123098665">
<name>
<first>Miron</first>
<last>Baar</last>
<junior />
</name>
<age>39</age>
<gender>male</gender>
</person>
<person employed="parttime" id="020398665">
<name>
<first>Marion</first>
<last>Brug-Baar</last>
</name>
<age>36</age>
<gender>female</gender>
</person>
<person id="986650203">
<name>
<first>Barble</first>
<last>Baar</last>
</name>
<age>11</age>
<gender>male</gender>
</person>
</spis_powszechny>