XPath? XML ???? ??? ?? ?????.

XPath ?? ???

XPath?? ??, ??, ???, ??????, ?? ??, ??, ??(??) ??? 7?? ??? ??? ????. XML ??? ?? ??? ?????. ??? ??? ?? ?? ?? ?? ???? ???.

XPath ?? ?

<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
  <book>
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
  </book>
</bookstore>

? XML ??? ?? ?:

<bookstore> (文檔節(jié)點)
<author>J K. Rowling</author> (元素節(jié)點)
lang="en" (屬性節(jié)點)