Java tutorial
//package com.java2s; import javax.xml.bind.DatatypeConverter; public class Main { /** * Converts Long into XML-Tag with type xsd:long */ public static String getXMLLong(final long value) { return DatatypeConverter.printLong(value); } }