What is XPath?
XPath is a syntax for defining parts of an XML document
XPath uses path expressions to navigate in XML documents
XPath contains a library of standard functions
XPath is a major element in XSLT
XPath is a W3C recommendation
出處: http://www.w3schools.com/xpath/
如果想學習網頁語法相關的程式可以到這個網站看看 :http://www.w3schools.com/
這個網站可以學習xpath的路徑,裡面有很多範例可以看。
http://zvon.org/xxl/XPathTutorial/General/examples.html
另外一個這個網址可以看關於css path的網站。
http://www.w3schools.com/cssref/css_selectors.asp
關於上面寫的這些都是在講網頁的樹狀架構呢。
css path 筆記
#main_outer 意思是div的ID=main_outer