Author: doogie
Date: Wed Sep 9 05:57:22 2009
New Revision: 812778
URL:
http://svn.apache.org/viewvc?rev=812778&view=revLog:
getDocument() now returns elements that contain location data.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java
ofbiz/trunk/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java?rev=812778&r1=812777&r2=812778&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/component/ComponentResourceHandler.java Wed Sep 9 05:57:22 2009
@@ -63,7 +63,7 @@
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) {
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java?rev=812778&r1=812777&r2=812778&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/config/MainResourceHandler.java Wed Sep 9 05:57:22 2009
@@ -61,7 +61,7 @@
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) {