Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354806 - [dot4zest] DotGraph file parsing error
Summary: [dot4zest] DotGraph file parsing error
Status: RESOLVED FIXED
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Zest (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 06:09 EDT by wondawg3 CLA
Modified: 2011-08-17 00:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wondawg3 CLA 2011-08-16 06:09:25 EDT
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.
Comment 1 Fabian Steeg CLA 2011-08-16 09:28:08 EDT
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).
Comment 2 wondawg3 CLA 2011-08-17 00:49:58 EDT
Great!! It works with .dot file extension.
Thanks for your help.