More than Ever, XPath 2.0 is About XML as Modeled
Not About
“XML Documents”
- XPath 2.0 does not
- Read or understand XML documents (instances)
- Understand about pointy brackets or entities
- XPath 2.0 works on a model of an XML document
- Some application (a “parser”) reads
serialized XML and creates new model
- The XML document can still be thought of as a tree of
nodes
- XPath 2.0 works with element nodes, attribute
nodes,
comment nodes, etc.
An application uses XPath 2.0 to select part of a tree for
processing