Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Apache batik (SVG error)
Apache batik [message #1836942] Tue, 19 January 2021 13:31
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
Registered: February 2013
Hi all,

I use batik and canvas class to load and display a svg image .
Here my code:

  mainFrame = new JFrame("Task Graph");

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

When I run the code:
i get this error:

"svg error:
content is not allowed in prolog."

Please find attached the xml of my svg image.

Could you help me please!!
Thank you in advance.
  • Attachment: output.xml
    (Size: 4.81KB, Downloaded 42 times)

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

Report message to a moderator

Previous Topic:[Solved] PDE version out of sync with JDT? How is this resolved?
Next Topic:SVG error
Goto Forum:

Current Time: Mon Jan 30 06:05:52 GMT 2023

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

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

Back to the top