XPath Examples - Mellon Institute
✓ Published0🌍 Public
CCliffordAnderson
Last edited May 14, 2014
Created on May 14, 2014
This example demonstrates how XPath queries navigate and extract specific content from a TEI-encoded document of the Mellon Institute at Vanderbilt. It shows the progression from simple absolute paths to descendant-or-self axes, then to predicate-based filtering, and finally to more complex relational paths. The code uses the XPath API to select titles, names, sex attributes, and speaker-related paragraphs, referencing the updated TEI Guidelines for the sex element. The example is presented as a gist authored by CliffordAnderson, with the source data being the structured XML markup of the institute’s records, illustrating query patterns for text extraction and attribute matching.
AI-generated description