Java tutorial
//package com.java2s; import javax.xml.bind.DatatypeConverter; public class Main { /** * Converts Integer into XML-Tag with type xsd:int */ public static String getXMLInteger(Integer integer) { return DatatypeConverter.printInt(integer); } }