|
@@ -24,6 +24,7 @@ public class XmlUtil {
|
|
|
* @return
|
|
|
*/
|
|
|
public static String xmlErrorCorrection(String xml) {
|
|
|
+ xml = xml.replaceAll("\\<\\?xml[\\S\\s][^<>]*\\?\\>", "");
|
|
|
StringBuffer sbf = new StringBuffer();
|
|
|
Pattern pattern = Pattern.compile("\\<.[^<>]*\\>");
|
|
|
Matcher matcher = pattern.matcher(xml);
|