private void createElement(Document doc,Element parentElement,String elementName,int value){
  Element element=doc.createElement(elementName);
  element.appendChild(doc.createTextNode(Integer.toString(value)));
  parentElement.appendChild(element);
}

private void createElement ( Document doc , Element parentElement , String elementName , int value ) { Element element = doc . createElement ( elementName ) ; element . appendChild ( doc . createTextNode ( Integer . toString ( value ) ) ) ; parentElement . appendChild ( element ) ; }
creates the xml element for an integer value .
