Some examples of XPath selectors. All Elements //* All P Elements //p All Child Elements //p/* Element By ID //*[@id=’foo’] Element By Class //*[contains(@class,’foo’)] 1 Element With Attribute //*[@title] First Child of All P //p/*[0] All P with an A child //p[a] Next Element //p/following-sibling::*[0]
Pages
Categories
Archives