getDocument() now returns elements that contain location data.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adam Heath
2009-09-09 05:57:22 +00:00
parent 7e4472151c
commit 3fbb02cf7f
2 changed files with 2 additions and 2 deletions
@@ -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) {
@@ -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) {