ZadaniaDomowe/Zad6/zadanie3.xml

67 lines
1.9 KiB
XML
Raw Permalink Normal View History

2024-12-03 21:31:23 +01:00
<?xml version="1.0"?>
<!DOCTYPE spis_powszechny [
<!ELEMENT spis_powszechny (date+,address+,person+)>
<!ATTLIST spis_powszechny rachmistrz CDATA #REQUIRED>
<!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)>
<!ATTLIST person employed (fulltime|parttime) #IMPLIED>
<!ATTLIST person id CDATA #REQUIRED>
<!ELEMENT name (first,last,junior?)>
<!ELEMENT first (#PCDATA)>
<!ELEMENT last (#PCDATA)>
<!ELEMENT junior (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT gender (#PCDATA)>
]>
<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>