diff --git a/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java b/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java index 06c29f6cae..2826725809 100644 --- a/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java +++ b/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java @@ -63,7 +63,7 @@ public class ComponentResourceHandler implements ResourceHandler { public Document getDocument() throws GenericConfigException { try { - return UtilXml.readXmlDocument(this.getStream(), this.getFullLocation()); + return UtilXml.readXmlDocument(this.getStream(), this.getFullLocation(), true); } catch (org.xml.sax.SAXException e) { throw new GenericConfigException("Error reading " + this.toString(), e); } catch (javax.xml.parsers.ParserConfigurationException e) { diff --git a/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java b/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java index 798ff5d2fd..8e91a2146e 100644 --- a/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java +++ b/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java @@ -61,7 +61,7 @@ public final class MainResourceHandler implements ResourceHandler { public Document getDocument() throws GenericConfigException { try { - return UtilXml.readXmlDocument(this.getStream(), this.xmlFilename); + return UtilXml.readXmlDocument(this.getStream(), this.xmlFilename, true); } catch (org.xml.sax.SAXException e) { throw new GenericConfigException("Error reading " + this.toString(), e); } catch (javax.xml.parsers.ParserConfigurationException e) {