【程序编程相关:自己用C#开发的EMAIL地址抓取程序。】
【推荐阅读:TreeView的有关操作 】xml schema提供了一组丰富的内置数据类型,用于定义元素中允许的类型.下面将介绍一些完全符合c#标准的通用类型. 【扩展信息:使用模板列获取批量获取DataGrid中】1.基本数据类型
基本数据类型是在xml schema中使用的每种数据类型的最基本构成块.可以根据这些类型构造自定义的类型.这些类型包括:
boolean 可以是1(true)或者0(false).datetime 表示时间的部分可选,格式:ccyy-mm-ddthh:mm:ss 例如:2005-3-18t14:48:12decimal 表示任意精度的十进制数字.string 字符数据.int 表示从-2,147,483,648到2,147,483,648之间一个整数.nonnegativeinteger 表示大于或者等于0的一个整数.nonpositiveinteger 表示小于或者等于0的一个整数.short 表示从-32768到32767之间的一个整数.
例如:
<xsd:schema xmlns:xsd=http://www.w3.org/2001/xmlschema><xsd:element name=”contactdetails”> <xsd:complextype> <xsd:sequence> <xsd:element ref=”name” /> <xsd:element name=”rate” type=”xsd:decimal” /> </xsd:sequence> <xsd:attribute name=”lastupdated” type=”xsd:datetime” />... 下一页