XML 架构通过XML架构定义(XSD)语言定义和描述某些XML数据类型。XML架构元素用于定义某些XML数据类型的有效结构、有效数据内容和关系。XML架构还可为属性和元素提供默认值。
可使用XML架构来保证应用程序的某些XML数据类型的一致性。XML架构可用作两个应用程序之间进行数据交换的合同。程序可以发布描述其应用程序生成和使用的XML格式的架构。这样,希望交换数据的其他程序和应用程序可以围绕这些架构生成它们的应用程序,以便它们的XML消息能被理解。
说明:XML架构是XML的结构定义。