When computer has run all day without restart, XML output file
from sadf -x contains no boot elements.
So change DTD document accordingly (from <!ELEMENT restarts (boot+)>
to <!ELEMENT restarts (boot*)>).
XSD document is not updated, but its version number changes to remain
consistent with that of DTD document.
Bug reported by Peter Schiffer <pschiffe@redhat.com> 13/11/2012.
Changes:
xxxx/xx/xx: Version 10.1.3 - Sebastien Godard (sysstat <at> orange.fr)
+ * Fixed DTD document: If computer has run all day without
+ restart, XML output file from sadf -x has no boot elements.
2012/10/06: Version 10.1.2 - Sebastien Godard (sysstat <at> orange.fr)
* New field added to sar -u and mpstat: %gnice (time spent
#include "sa.h"
/* DTD version for XML output */
-#define XML_DTD_VERSION "2.14"
+#define XML_DTD_VERSION "2.15"
/* Possible actions for functions used to display reports */
#define F_BEGIN 0x01
<?xml version="1.0" encoding="UTF-8"?>
-<!--DTD v2.14 for sysstat. See sadf.h -->
+<!--DTD v2.15 for sysstat. See sadf.h -->
<!ELEMENT sysstat (sysdata-version, host)>
interval CDATA #REQUIRED
>
-<!ELEMENT restarts (boot+)>
+<!ELEMENT restarts (boot*)>
<!ELEMENT boot EMPTY>
<!ATTLIST boot
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://pagesperso-orange.fr/sebastien.godard/sysstat" targetNamespace="http://pagesperso-orange.fr/sebastien.godard/sysstat" elementFormDefault="qualified">
<xs:annotation>
- <xs:appinfo>-- XML Schema v2.14 for sysstat. See sadf.h --</xs:appinfo>
+ <xs:appinfo>-- XML Schema v2.15 for sysstat. See sadf.h --</xs:appinfo>
</xs:annotation>
<xs:element name="sysstat" type="sysstat-type"></xs:element>