aspose file tools*
The moose likes XML and Related Technologies and the fly likes generating state flow diagram from xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "generating state flow diagram from xml" Watch "generating state flow diagram from xml" New topic
Author

generating state flow diagram from xml

D Preethi
Ranch Hand

Joined: May 24, 2008
Posts: 68
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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

Joined: May 24, 2008
Posts: 68
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

Joined: Mar 22, 2000
Posts: 12769
    
    5
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
 
wood burning stoves
 
subject: generating state flow diagram from xml