Xpath cheatsheetXpath cheatsheet
IMPORTXML(C1,".//div[@class='post-title-container']//h3")
=IMPORTXML(C1,".//div[@class='post-title-container']//a/@href")
| Expression | Description |
|---|---|
| nodename | Selects 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



