StringBuffer process = new StringBuffer();
process.append("<?xml version=\"1.0\" encoding=\"" + ConfigFile.getProperty("CHARSET_ENCODING") + "\"?>\n");
process.append("<" + ELEM_PROCESS + " " + ELEM_ID + "=\"" + processId + "\" " +
ELEM_NAME + "=\"" + processName + "\" " + ELEM_VERSION + "=\"" + processVersion + "\">\n");
NodeList nodeList = doc.selectNodes("*");
for (int i=0; i<nodeList.getLength(); i++) {
Element e = (Element) nodeList.item(i);
String id = e.getAttribute(ELEM_ID);
String name = e.getAttribute(ELEM_NAME);