[工学]16第十六章 xml数据库.pdfVIP

  • 0
  • 0
  • 约2.16万字
  • 约 57页
  • 2018-03-27 发布于浙江
  • 举报
[工学]16第十六章 xml数据库

第十六章 XML数据库 内容 XML简介 XML 数据模型  SQL/XML XML数据库(*) XML简介 XML(extended markup language): 可扩展 的标记语言. XML是W3C在1998年制定的一项标准,用 于网上数据交换. XML特点: 1. 基于内容的描述 2. 可扩展性 3. 自描述性 4. 数据与显示分离 5. 简洁性 XML描述文档  用XML描述自然语言文档  复杂,无规则结构  如:使用手册,Web页  侧重于信息表示  操作 检索文档 查找单词  XML描述数据  用XML描述企业业务信息  简单有规则的结构,相同结构的多个 副本  如:订单,病人记录  侧重于应用之间的信息交换  操作 检索文档指定部分 查找元素  XML 数据模型 Graphs of Semistructured Data  Nodes = objects.  Labels on arcs (like attribute names). Atomic values at leaf nodes (nodes with no arcs out).  Flexibility: no restriction on:  Labels out of a node.  Number of successors with a given label. 6 Example: Data Graph root Notice a new kind beer beer of data. bar manf manf prize name A.B. name servedAt Bud year award M’lob 1995 Gold name addr Joe’s Maple The beer object for Bud The bar object for Joe’s Bar 7 两种类型的XML文档 Well-Formed and Valid XML  Well-Formed XML allows you to invent your own tags.  Valid XML conforms to a certain DTD, or XML schema . Relational database Valid XML Well-formed XML from strict Structure to loose Structure 8 Well-Formed XML 

文档评论(0)

1亿VIP精品文档

相关文档