Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从用户那里获取变量名称及其类型,并在运行时根据此信息生成 xsd。
我找不到任何方法来做到这一点。你知道一些吗?
您的帮助将不胜感激。
谢谢。
您可以尝试使用Castor。您可以从 XML 生成 XSD。您需要生成一个 XML,然后使用类XMLInstance2Schema将其转换为带有此框架的 XSD 。