Create a graph image (png, jpg ..) from an XML file with Java

Posted by alibm on Stack Overflow See other posts from Stack Overflow or by alibm
Published on 2011-02-05T07:19:28Z Indexed on 2011/02/05 7:25 UTC
Read the original article Hit count: 142

Filed under:
|
|
|

Hello, I have an XML file and I want to create a graph with some entities, then store this graph in an image, JPG or PNG.

So is there a library in Java do like this?? Or is there some tricks by parsing XML files and ... ???

Here an example

XML file:

<?xml version="1.0"?> <process> <p n=1>Tove</p> <p n=2>Jani</p> <p n=2>Bill</p> <p n=4>John</p> </process>


And the output will be like this.

http://i.imgur.com [slash] YevGX.png

Please change [slash] by / to see the image.

Thanks in advance. Best Regards, AliBM

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml