Learning XPath

28 Jan 2014 by Cliff Anderson

As you know, we will be discussing XPath during our next seminar. XPath is a language for exploring XML documents. XQuery and XSLT both make use of XPath. You'll need a good understanding of XPath to make effective use of XQuery.

Here's the input document we'll be using as a reference at our next meeting.

As you see, it's basically a bare bones TEI document. So how can XPath help us to explore the nodes and atomic values in this document? Let's try a few examples:

We'll go through all these exercises in class. We'll also learn how to use oXygen to assist with writing and testing our XPath expressions.

See you next week!


Response? Tweet to @andersoncliffb