XPath 1.0 Tree Still Bearing Fruit!
- We still have different types of nodes arranged in trees
- Elements
- Attributes
- Comments, processing instructions
- Document nodes (new! used to be
root)
- We now have XSD (XML Schema) data typing of these nodes
(if we want)
- XSD simple and complex typing
- Typing by restriction and derivation, substitution
groups, yowza!
- Uh-oh ... the word “type” becomes
problematic in XPath 2.0
- We still have document order (mapping to depth-first traversal)
- All the XPath 1.0 axes are intact
(child::,
parent::, ancestor-or-self:: etc.)