Introduction
Here is the source code for Main.java
Source
//package com.java2s;
// are made available under the terms of the Eclipse Public License v1.0
public class Main {
public static String removeBOM(String xml) {
return xml.trim().replaceFirst("^([\\W]+)<", "<"); //$NON-NLS-1$ //$NON-NLS-2$
}
}