![](/img/trans.png)
[英]Apache XMLSchema core XSD/XML parser shows the root element as parent for all children instead of its immediate parent
[英]XSOM vs Apache XmlSchema
我想要一个可用于内省 XSD 的库。 Basically parse it and give an object representation so that I can get the types, names, annotaions,namespace etc. So I came across mainly two of the libraries: java.net XML Schema Object Model (XSOM) and Apache commons XMLSchema
我觉得 XSOM 更好,但它似乎有不同的 CDDL 许可证。 那么我能否在我无法开源的商业项目中使用 XSOM? 你们中的任何人都知道将具有 LGPL 类型许可证的更好的此类库吗?
我使用了 Apache commons XMLSchema,它运行良好。
但是喜欢或讨厌仅仅暴露底层结构视图的图书馆大多是主观的事情。
关于许可证,XSOM 本身似乎是在 GPL 和 simil-GPL 许可证的混合下发布的。 如果您想 go 在安全方面 go 与 Apache 并放松。
戴上我的 Apache 帽子,如果你觉得 Apache commons XMLSchema 可以改进,请加入项目邮件列表,让我们听到你的想法,提交补丁,帮助我们把它变成一个更好的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.