I'm getting a list in java that contains name of variables and their types. I want to generate xsd from this list, but I understand that I have to create xml before.
so how do I create xml from list in Java?
I'm getting a list in java that contains name of variables and their types. I want to generate xsd from this list, but I understand that I have to create xml before.
so how do I create xml from list in Java?
The key is separating your list into a class to hold it . Once that is done you can work on converting it to and from XML. You can read more about XML here
A good tool to do this is xstream:
Heres a good post to show you how to use Xstream here