I want to know if it's possible to create a class diagram from an XML file?
I have a code generator created by my self which reads the properties from an XML file and creates my classes. Is it possible to create a class diagram too?
I think there may be a way in soft wares like Visual Paradigm to import an XML file with a specific format to create a class diagram from.
Do you have any Idea?
Asked
Active
Viewed 1,931 times
0

ehsan shirzadi
- 4,709
- 16
- 69
- 112
1 Answers
1
You could parse the XML and output the details in a string format defined by YUML for class diagrams.

emeraldjava
- 10,894
- 26
- 97
- 170
-
Is it possible to do it in a more common software like: visual paradigm, rational rose,visio,etc... – ehsan shirzadi Dec 18 '13 at 09:48
-
I'm suggest you generate a java source file from XML and then let the tools like visual paradigm generate the class diagram from the source then. – emeraldjava Dec 18 '13 at 10:26
-
Would you please let me now how to do this? – ehsan shirzadi Dec 19 '13 at 04:32
-
See something like [generate-java-class-from-xml-file-using-xstream](http://stackoverflow.com/questions/12454240/generate-java-class-from-xml-file-using-xstream) – emeraldjava Dec 19 '13 at 09:33