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
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 44 times)
Previous Topic:GMF Export to PNG Truncating text
Next Topic:Generate diagram code errors
Goto Forum:
  


Current Time: Mon Jan 30 12:44:16 GMT 2023

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

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

Back to the top