Generate XMI from API, not from executing .jar?

0 votes
asked May 16, 2019 in Question / help by anonymous
Hello,

I can generate XMI from executing the .jar-File with the right parameters, but I can't manage to find the right way to do this via own java code. Can somebody point me in the right direction, I'd be very thankful!

1 Answer

0 votes
answered May 21, 2019 by anonymous
Solution: When generating the image through a SourceStringReader, look into the FileFormat-Parameter, e.g.reader.generateImage(new ByteArrayOutputStream(), new FileFormatOption(FileFormat.XMI_STANDARD));

XMI_STANDARD can be replaced by XMI_ARGO or XMI_STAR.
commented Mar 26, 2020 by hoff (100 points)

Moved question to a more relevant existing question: https://forum.plantuml.net/4348

...