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
Member
Hi all,

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

  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);


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 60 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: Fri Apr 26 19:36:10 GMT 2024

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

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

Back to the top