Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

From Plant Uml to a structured object

0 votes
I am trying to use plantuml as UI to draw models. Behind the scenes I need to process the model created with plantuml. I am using the java jar file to use the features of plantuml. My main concern is that I don't know whether there is any way, using the API, to extract a structure from the text file that I can use for further processing (like some xml)

Is there any thing from the API that could help me to solve this problem?

Thank you very much
asked Mar 26, 2016 by milena.dyle (190 points)
This there a user guide to use the java jar file to apply the features of plantuml? I need to use the plantUML API to read and parse a file written in plantUML language (e.g., read and parse a sequence model written in plantUML language).

1 Answer

0 votes
Best answer
The best option seems to be XMI export (see http://plantuml.com/xmi.html )

Would this fit your needs ?

Support for XMI is very limited right now, but we are willing to enhance it, only if anyone would use it.
answered Mar 29, 2016 by plantuml (112,180 points)
selected Mar 30, 2016 by milena.dyle
Please give me some minutes since I am still having the same output. Maybe I am referencing the wrong jar file.
Thank you very much!
It's perfect! This time the problem was mine :)
Added the right jar and it works!

Thank you
Don't know if this makes sense, but you could output the state diagrams in the SCXML format, which I believe is a standard method for representing state diagrams in XML.
Thanks for the idea! This makes 100% sense.

So we are going to add a SCXML export option (in addition to XMI).
Of course, this will work only for state diagrams. We'll post a message here when this will be ready.
In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
We have added -tscxml flag which allow the export to SCXML format for state diagram.
Some stuff may not be working, so do not hesitate to post messages here!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter