Lecture 10 on XML Database.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Lecture 10 on XML Database.ppt

10/03/2009 Lecture 10 on XML Database This lecture introduces XML database as an post relational database, and also as a standard Internet computer language for e-commerce. It covers XML schema in Document Type Definition (DTD) and DTD Graph format, and the methodology of mapping relational schema into XML schema. XML documents are also used for illustration. What is XML? XML is Extensible The tags used to markup HTML documents and the structure of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard. XML allows the author to define his own tags and his own document structure. Benefits of using XML It is structured. Documents are easily committed to a persistence layer. Platform independent, textual information. An open standard. Language independent. DOM and SAX are open, language-independent set of interfaces. It is Web enabled. Typical XML System How XML can be used? XML can keep data separated from your HTML document. XML can also store data inside HTML documents (Data Islands). XML can be used to exchange data. XML can be used to store data. XML Syntax An example XML document. ?xml version=1.0? note toTan Siew Teng/to fromLee Sim Wee/from headingReminder/heading bodyDont forget the Golf Championship this weekend!/body /note Example (cont’d) The first line in the document: The XML declaration should always be included. It defines the XML version of the document. In this case the document conforms to the 1.0 specification of XML. ?xml version=1.0? The next line defines the first element of the document (the root element): note Example (cont’d) The next lines defines 4 child elements of the root (to, from, heading, and body): toTan Siew Teng/to fromLee Sim Wee/from headingReminder/heading bodyDont forget the Golf Championship this weekend!/body The last line defines the end of the root element: /note What is an XML element? An XML element is made up of a start tag, an end tag, and dat

文档评论(0)

gshbzl + 关注
实名认证
内容提供者

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

1亿VIP精品文档

相关文档