2

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?

4

1 回答 1

2

关键是将您的列表分成一个类来保存它。完成后,您可以将其转换为 XML 或从 XML 转换。您可以在此处阅读有关 XML的更多信息

一个很好的工具是xstream

这是一篇很好的文章,向您展示如何在此处使用 Xstream

于 2012-07-24T08:11:16.497 回答