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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user