当前位置:K88软件开发文章中心编程语言XmlSchema01 → 文章内容

XML Schema 教程

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-26 18:49:31

由 chenlei5720 创建,Carrie 最后一次修改 2015-09-26 XML Schema 教程 XML Schema 描述了 XML文档的结构。 在此教程中,你将学习如何在应用程序中读取和创建 XML Schema 语言,XML Schema 为何比 DTD 更加强大,以及如何在您的应用程序中使用 XML Schema。 现在开始学习 XML Schema! XML Schema 实例 <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="note">   <xs:complexType>     <xs:sequence>       <xs:element name="to" type="xs:string"/>       <xs:element name="from" type="xs:string"/>       <xs:element name="heading" type="xs:string"/>       <xs:element name="body" type="xs:string"/>     </xs:sequence>   </xs:complexType> </xs:element> </xs:schema> XML Schema 参考手册 在 W3CSchool中,我们学习完整的 XML Schema 元素。 XML Schema 参考手册

XML Schema 教程