WDI-Homework/lab6/plik.xml

72 lines
1.9 KiB
XML
Raw Normal View History

2024-12-01 21:54:35 +01:00
<?xml version="1.0" encoding="UTF-8"?>
<!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 EMPTY>
<!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>