XPath
- XPath is another W3C standard
- easy way to access any node in the document
- Has namespace support
- Some examples:
- /html/head
- /html/body/p[position() = 3]
- /html/body//h1
- /html/body/p[@class = 'content']
- /html/body/p/@class
© copyright 2003 Bitflux GmbH