StudataExporterXmlPrograms programExporter = new StudataExporterXmlPrograms(
xml, projectPaths, data);
programExporter.writeProgramData();
xml.endTag(null, "dataroot");
xml.endDocument();
}
static String formatDouble(double d) {
// cleanup bad double values
if (Double.isInfinite(d) || Double.isNaN(d))