Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » SVG Error(problem with SVG)
SVG Error [message #1837033] Thu, 21 January 2021 09:29
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
Registered: February 2013
Hi all,

I use batik and canvas class to load and display an svg image .
Here my java code and please find attached the xml code of my svg image

mainFrame = new JFrame("Task Graph");


Container pane = mainFrame.getContentPane();
pane.setLayout(new BorderLayout());
JSVGCanvas canvas = new JSVGCanvas();
pane.add(canvas, BorderLayout.CENTER);

My problem is when I run the code:, I get this error:

"svg error: content is not allowed in prolog.

Could you help me please!!
Thank you in advance.
  • Attachment: output.xml
    (Size: 4.81KB, Downloaded 67 times)
Previous Topic:GMF Export to PNG Truncating text
Next Topic:Generate diagram code errors
Goto Forum:

Current Time: Mon Apr 15 02:32:53 GMT 2024

Powered by FUDForum. Page generated in 0.10034 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top