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(final Integer integer) { return DatatypeConverter.printInt(integer); } }