elem.addContent(new CDATA(script.getText()));
}
public Script readScript(Element element) {
Script s = new Script();
ScriptEnvironment e = s.getEnvironment();
Attribute a;
//os:
a = element.getAttribute("os");
if (a != null)
e.setOperatingSystem(a.getValue());
//shell:
a = element.getAttribute("shell");
if (a != null)
e.setShell(a.getValue());
//script:
s.setText(element.getValue());
return s;
}