Model structured documents with elements, attributes, namespaces, schemas, parsing, and transformations.
Lessons
Use string, number, and boolean functions in queries.
XPath Functions is easiest to learn by reading the example, changing it, and observing the result.
<!-- XPath expressions against a lessons document -->
/lessons/lesson <!-- all lesson elements -->
//title <!-- every title anywhere -->
/lessons/lesson[@level='beginner'] <!-- predicate filter -->
/lessons/lesson[2]/title <!-- second lesson's title -->
//lesson[contains(title,'XML')] <!-- function in predicate -->
count(//lesson) <!-- number of lessons -->Practice the XPath Functions example in a small scratch file, then explain what changed and why.