Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SVG error(SVG error)
SVG error [message #1837036] Thu, 21 January 2021 09:35
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 26 times)

[Updated on: Thu, 21 January 2021 09:36]

Report message to a moderator

Previous Topic:Glimmer Canvas Shape DSL & Animation DSL for SWT
Next Topic:OleControlSite Shell.Explorer Support In Light of IE Sunset
Goto Forum:

Current Time: Mon Apr 19 13:40:58 GMT 2021

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

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

Back to the top