简体   繁体   English

XSOM 与 Apache XmlSchema

[英]XSOM vs Apache XmlSchema

I wanted a library which can be used to introspect an XSD.我想要一个可用于内省 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 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

I felt XSOM is better, but it seems to be having a different CDDL license.我觉得 XSOM 更好,但它似乎有不同的 CDDL 许可证。 So will I be able to use XSOM in a commercial project which I cant make open source?那么我能否在我无法开源的商业项目中使用 XSOM? Any of you aware of any better such libraries which will have LGPL type of license?你们中的任何人都知道将具有 LGPL 类型许可证的更好的此类库吗?

I've used Apache commons XMLSchema and it works well.我使用了 Apache commons XMLSchema,它运行良好。

But loving or hating a library that merely expose a view of an underlying structure is mostly a subjective thing.但是喜欢或讨厌仅仅暴露底层结构视图的图书馆大多是主观的事情。

Regarding license, XSOM itself seems to be released under a mixture of GPL and simil-GPL licenses.关于许可证,XSOM 本身似乎是在 GPL 和 simil-GPL 许可证的混合下发布的。 If you want to go on the safe side go with Apache and relax.如果您想 go 在安全方面 go 与 Apache 并放松。

Putting my Apache hat on, if you feel that Apache commons XMLSchema can be improved, please join the project mailing list, let us hear your ideas, submit patches, and help us make it a better library.戴上我的 Apache 帽子,如果你觉得 Apache commons XMLSchema 可以改进,请加入项目邮件列表,让我们听到你的想法,提交补丁,帮助我们把它变成一个更好的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM