Commit a998bfe2 authored by Nico Mack's avatar Nico Mack

Enable xml include in scenario parsing

parent 61908342
......@@ -880,6 +880,7 @@ public class EquationSystemBuilder {
SAXBuilder builder = new SAXBuilder();
try {
builder.setFeature("http://apache.org/xml/features/xinclude", true);
equationDocument = builder.build(equationFile);
} catch (IOException | JDOMException e) {
LOGGER.error("Error occured while trying to process the object bootstrapping file!", e); //$NON-NLS-1$
......
......@@ -59,6 +59,7 @@ public class ScaleSystemBuilder {
public ScaleSystemBuilder(File scenario) throws ScaleSystemException {
SAXBuilder builder = new SAXBuilder();
try {
builder.setFeature("http://apache.org/xml/features/xinclude", true);
scenarioDocument = builder.build(scenario);
} catch (IOException | JDOMException e) {
LOGGER.error("Error occured while trying to process the object bootstrapping file!", e); //$NON-NLS-1$
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment