#include "sa.h"
/* DTD version for XML output */
-#define XML_DTD_VERSION "2.19"
+#define XML_DTD_VERSION "3.0"
/* Possible actions for functions used to display reports */
#define F_BEGIN 0x01
printf("\"http://pagesperso-orange.fr/sebastien.godard/sysstat-%s.dtd\">\n",
XML_DTD_VERSION);
- xprintf(*tab, "<sysstat>");
+ xprintf(*tab, "<sysstat\n"
+ "xmlns=\"http://pagesperso-orange.fr/sebastien.godard/sysstat\"\n"
+ "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+ "xsi:schemaLocation=\"http://pagesperso-orange.fr/sebastien.godard sysstat.xsd\">");
xprintf(++(*tab), "<sysdata-version>%s</sysdata-version>",
XML_DTD_VERSION);
struct stats_cpu *scc, *scp;
char cpuno[8];
- if (DISPLAY_CPU_DEF(a->opt_flags)) {
- xprintf(tab++, "<cpu-load>");
- }
- else if (DISPLAY_CPU_ALL(a->opt_flags)) {
- xprintf(tab++, "<cpu-load-all>");
- }
+ xprintf(tab++, "<cpu-load>");
for (i = 0; (i < a->nr) && (i < a->bitmap->b_size + 1); i++) {
}
}
- if (DISPLAY_CPU_DEF(a->opt_flags)) {
- xprintf(--tab, "</cpu-load>");
- }
- else if (DISPLAY_CPU_ALL(a->opt_flags)) {
- xprintf(--tab, "</cpu-load-all>");
- }
+ xprintf(--tab, "</cpu-load>");
}
/*