<!-- Root element -->
<!ELEMENT report (group*)>
<!ATTLIST report timestamp CDATA #REQUIRED>

<!-- Group of host nodes -->
<!ELEMENT group (host*)>
<!ATTLIST group name CDATA #REQUIRED>

<!-- Host node -->
<!ELEMENT host (status,ssh,kernel,lsb,history?,clusters?,packages)>
<!ATTLIST host hostname CDATA #REQUIRED>
<!ATTLIST host comment CDATA #IMPLIED>

<!-- Host apt-dater status -->
<!ELEMENT status (#PCDATA)>
<!ATTLIST status status CDATA #REQUIRED>

<!-- SSH parameter -->
<!ELEMENT ssh (user,host,port)>
<!ELEMENT user (#PCDATA)>
<!ELEMENT port (#PCDATA)>

<!-- Kernel version -->
<!ELEMENT kernel (#PCDATA)>
<!ATTLIST kernel reboot CDATA #IMPLIED>

<!-- LSB release info -->
<!ELEMENT lsb (distri?,release?,codename?)>
<!ELEMENT distri (#PCDATA)>
<!ELEMENT release (#PCDATA)>
<!ELEMENT codename (#PCDATA)>

<!-- History data -->
<!ELEMENT history (install|upgrade)+>

<!-- Clusters data -->
<!ELEMENT clusters (member-of)+>

<!-- Package list -->
<!ELEMENT packages (pkg)>
<!ELEMENT pkg EMPTY>
<!ATTLIST pkg name CDATA #REQUIRED
	      version CDATA #REQUIRED
	      hasupdate CDATA #IMPLIED
	      onhold CDATA #IMPLIED
	      data CDATA #IMPLIED>
