WSSOA英文版培训第3课【XMLschemas】….ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
BUPTSSE SOA principles practice Lecture 3 XML Schemas XML Schemas /TR/xmlschema-0/ (Primer) /TR/xmlschema-1/ (Structures) /TR/xmlschema-2/ (Datatypes) Schema Validators GUI Oriented XML Spy Turbo XML Command Line Only XSV by Henry Thompson ftp://ftp.cogsci.ed.ac.uk/pub/XSV/XSV12.EXE Has a Programmatic API xerces by Apache /xerces-j/index.html IBM Schema Quality Checker /tech/xmlsqc MSXML6.0 What is XML Schemas? Answer: An XML vocabulary for expressing your datas business rules An XML Schema: defines elements that can appear in a document defines attributes that can appear in a document defines which elements are child elements defines the order of child elements defines the number of child elements defines whether an element is empty or can include text defines data types for elements and attributes defines default and fixed values for elements and attributes Example Validating your data Purpose of XML Schemas (and DTDs) Specify: the structure of instance documents this element contains these elements, which contains these other elements, etc the datatype of each element/attribute this element shall hold an integer with the range 0 to 12,000 (DTDs dont do too well with specifying datatypes like this) Highlights of XML Schemas XML Schemas are a tremendous advancement over DTDs: Enhanced datatypes 44+ versus 10 Can create your own datatypes Example: This is a new type based on the string type and elements of this type must follow this pattern: ddd-dddd, where d represents a digit. Written in the same syntax as instance documents less syntax to remember Highlights of XML Schemas(Cont) XML Schemas are a tremendous advancement over DTDs: Object-orientedish Can extend or restrict a type (derive new type definitions on the basis of old ones) Can express sets, i.e., can define the child elements to occur in any order Can specify element content as being unique (keys on content) and uniqueness within a region Can define multiple elements wit

文档评论(0)

琼瑶文档 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档