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