写.NET程序的都知道有一个System.Xml.Schema命名空间,里面有专门操作XmlSchema的类型。但是转入Java后,我们尝试查找相同的接口实现。
它就是:Apache的XmlSchema,接口基本和微软的一样的, http://ws.apache.org/commons/xmlschema20/index.html
MLSchema is a lightweight Java object model that can be used to manipulate and generate XML schema representations. You can use it to read XML Schema (xsd) files into memory and analyze or modify them, or to create entirely new schemas from scratch.
XMLSchema 2.0 is a major revision that takes advantage of the facilities of Java 1.5.
For information on how to use the XmlSchema API, please see the javadocs or the tutorial.
XmlSchema eagerly welcomes suggestions, documentation, and most of all code. Please join our dev list, submit JIRA entries, and attach patches.

本文探讨了在Java环境中使用Apache XmlSchema API来操作XML Schema的体验,与.NET程序中的System.Xml.Schema进行比较,详细介绍了XMLSchema2.0的优势及API使用方法。
1506

被折叠的 条评论
为什么被折叠?



