books.xml文件

<?xml version="1.0" encoding="ISO-8859-1"?>

<bookstore>

<book category="COOKING">
  <title lang="en">Everyday Italian</title>
  <author>Giada De Laurentiis</author>
  <year>2005</year>
  <price>30.00</price>
</book>

<book category="CHILDREN">
  <title lang="en">Harry Potter</title>
  <author>J K. Rowling</author>
  <year>2005</year>
  <price>29.99</price>
</book>

<book category="WEB">
  <title lang="en">XQuery Kick Start</title>
  <author>James McGovern</author>
  <author>Per Bothner</author>
  <author>Kurt Cagle</author>
  <author>James Linn</author>
  <author>Vaidyanathan Nagarajan</author>
  <year>2003</year>
  <price>49.99</price>
</book>

<book category="WEB">
  <title lang="en">Learning XML</title>
  <author>Erik T. Ray</author>
  <year>2003</year>
  <price>39.95</price>
</book>

</bookstore>

 

层次图和概念说明

XML 基本概念和XPath选择

说明

 

  • XML 文档中的每个成分都是一个节点。文本,属性,注释都是节点。
  • 整个文档是一个文档节点 即Document节点
  • 元素一定是节点,而节点不一定是元素。

XML 基本概念和XPath选择

 

 

XML 基本概念和XPath选择

 

XML 基本概念和XPath选择

 

XML 基本概念和XPath选择

 

相关文章:

  • 2021-11-09
  • 2022-02-22
  • 2021-11-07
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-12-26
  • 2021-10-06
相关资源
相似解决方案