diff --git a/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java b/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java index 20e8328904..fc40ade794 100644 --- a/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java +++ b/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java @@ -127,7 +127,7 @@ public final class SimpleMethod extends MiniLangElement { Map simpleMethods = FastMap.newInstance(); Document document = null; try { - document = UtilXml.readXmlDocument(content, MiniLangValidate.validationOn(), true); + document = UtilXml.readXmlDocument(content, true, true); } catch (Exception e) { throw new MiniLangException("Could not read SimpleMethod XML document [" + name + "]: ", e); } @@ -139,7 +139,7 @@ public final class SimpleMethod extends MiniLangElement { Map simpleMethods = FastMap.newInstance(); Document document = null; try { - document = UtilXml.readXmlDocument(xmlURL, MiniLangValidate.validationOn(), true); + document = UtilXml.readXmlDocument(xmlURL, true, true); } catch (Exception e) { throw new MiniLangException("Could not read SimpleMethod XML document [" + xmlURL + "]: ", e); }