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
Member
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");
mainFrame.setSize(800,600);

mainFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
mainFrame.setVisible(true);

Container pane = mainFrame.getContentPane();
pane.setLayout(new BorderLayout());
JSVGCanvas canvas = new JSVGCanvas();
canvas.setURI("output.xml");
pane.add(canvas, BorderLayout.CENTER);
pane.setVisible(true);

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 80 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: Thu Mar 28 15:54:27 GMT 2024

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

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

Back to the top