Code example for DecimalFormatSymbols

 * @author Pavel Savara (original) 
public class XmlWriter { 
	private static final DecimalFormat decimalFormat = new DecimalFormat("#.####", new DecimalFormatSymbols(Locale.US));
	final Writer writer;
	final Stack<String> elements = new Stack<String>();
	boolean headClosed = true;
	boolean innerElement = false;
	boolean indent = true;
	public XmlWriter(Writer writer, boolean indent) {
		this.writer = writer;
		this.indent = indent;
	public void startDocument() throws IOException { 
		writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
Connect your IDE to all the code out there  Get Codota for Java