diff --git a/src/main/java/org/culturegraph/mf/runner/MorphVis.java b/src/main/java/org/culturegraph/mf/runner/MorphVis.java index 8ac5dc564..f2a78bd18 100644 --- a/src/main/java/org/culturegraph/mf/runner/MorphVis.java +++ b/src/main/java/org/culturegraph/mf/runner/MorphVis.java @@ -23,11 +23,12 @@ import java.io.Writer; import org.culturegraph.mf.morph.MorphVisualizer; +import org.xml.sax.InputSource; /** * Generates a graphviz dot file based on a Metamorph definition. - * + * * @author Markus Michael Geipel */ public final class MorphVis { @@ -39,7 +40,7 @@ private MorphVis() {/* no instances */ /** * @param args - * + * * @throws IOException */ public static void main(final String[] args) throws IOException { @@ -54,8 +55,8 @@ public static void main(final String[] args) throws IOException { return; } final MorphVisualizer visualizer = new MorphVisualizer(out); - visualizer.walk(new FileReader(args[0])); + visualizer.walk(new InputSource(new FileReader(args[0]))); } - + }