写.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.