Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

generating state flow diagram from xml

 
D Preethi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am not sure if this is the right forum to ask this question. Please redirect me if this is not the right place. The issue I have is this:
There is a xml file which is having some info about the flow of an application. The xml has info about each state, and where to go to from each state. I want to generate a state flow diagram by looking at this xml. Any ideas on what tools I would need to use to achieve this? Any pointers would definitely help. I am ok with using any eclipse plugin as well. Please advise.

thanks in advance!

- Preethi
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to extract values using the logic of the XML document you will need to parse the document, presumably into a DOM - document object model. Then you can use the methods in the standard Java library to extract values.

I suggest Harold's free online book but there are many other tutorials.

Bill
 
D Preethi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill! What do I do after extracting the values? I have the flow paths ready, but I want to automatically be able to generate a flow chart from them.

- Preethi
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
D Preethi wrote:Thanks Bill! What do I do after extracting the values? I have the flow paths ready, but I want to automatically be able to generate a flow chart from them.

- Preethi


I have never tackled that particular problem but I bet a lot of other people have. A google search for "automatic flow chart creation java" got lots of hits.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic