Community
Participate
Working Groups
Build Identifier: 20110615-0604 Whenever I pass a graph file into DotGraph constructor, the XML parser gives the following error message. File file = new File("./sample.graph"); DotGraph graph = new DotGraph(file, parent, SWT.NONE); > org.xml.sax.SAXParseException: Content is not allowed in prolog. It works properly when I use the plain string variable containing the exact same contents as the graph file, so I guess the contents of the file are valid. Thx, Reproducible: Always Steps to Reproduce: 1. Pass a graph file into DotGraph() constructor. 2. 3.
Thanks for your report. The issue is the file extension, which has to be "dot". I've added a clearer error message in master (see TestDotAst#extensionError).
Great!! It works with .dot file extension. Thanks for your help.