Skip to Main Content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.

University Library, University of Illinois at Urbana-Champaign

An Introduction to XML and TEI

This guide provides an introduction to XML and the Text Encoding Initiative.

Why TEI?

TEI is an XML-based markup language that enable scholars to store, analyze, and share humanities textual information. The Text Encoding Initiative (TEI) Consortium is a organization that develops the standards for text encoding in the TEI encoding language. The TEI Consortium developed and continually revises The Guidelines to Text Encoding and Interchange, the guidelines for text encoding in TEI.

Adapted from:

Uses for TEI

The diagram below, borrowed from the Women Writers Project, shows how TEI can be used in a number of different scholarly applications. While all these different uses share a common core of certain elements of TEI, the TEI is also flexible enough that is can cater to each unique type of project or document.

An 8-part Venn diagram with the word “common” at the center. Starting at the top, moving clockwise, the outer ellipses read, “scholarly editing, manuscripts, digital libraries, digital archives, authoring, linguistics, dictionaries, historical editing.”

Image: https://wwp.northeastern.edu/outreach/seminars/_current/presentations/tei_intro/TEI_introduction_05.xhtml​ 

Customization

The process of altering the TEI Schema to meet your needs is called customization. This process can include:

  • Adding or omitting elements
  • Changing names of elements or attributes
  • Restricting the values of attributes (possibly by creating a controlled vocabulary)

Customized Schemas are what you use to validate your TEI document. Using most editors, like oXygen, if you specify that you are working you with a specific Schema, it will indicate if you are violating the Schema, and even restrict the possible elements and attributes that are possible in a given situation (see the previous section on well-formedness and validity for more information).

 

Source: