Xpath

Xpath cheatsheet

Full width home advertisement

banner-quang-cao-1-1

Post Page Advertisement [Top]

728+3

Xpath cheatsheetXpath cheatsheet

xpath-image



IMPORTXML(C1,".//div[@class='post-title-container']//h3")


=IMPORTXML(C1,".//div[@class='post-title-container']//a/@href")


ExpressionDescription
nodenameSelects all nodes with the name "nodename"
/Selects from the root node
//Selects nodes in the document from the current node that match the selection no matter where they are
.Selects the current node
..Selects the parent of the current node
@Selects attributes







Nguồn tham khảo:





https://www.w3schools.com/xml/books.xml











728+3

Bottom Ad [Post Page]

| Designed by Colorlib