5 TEI Basic Structure

5.1 Empty XML-TEI

The example shown below corresponds to an XML document that follows the TEI model. In the following points we explain the basic structure of a TEI document.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" 
type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>

<!-- 👆 these are the processing instructions -->  

<!-- 👇  Here starts the TEI structure, with the <TEI> element, so called root element -->
<TEI xmlns="http://www.tei-c.org/ns/1.0">
  <teiHeader>  <!-- 👈 where the metadata goes -->
            <title>Empty XML File</title>
            <p>Information about the publication</p>
            <p>Information about the source</p>
  <text>  <!-- 👈 where the actual text goes -->
         <p>Some text here.</p>

5.2 TEI Basic structure

5.2.1 Root Element <TEI>

5.2.2 <teiHeader>

5.2.3 <text>

5.2.4 <body>

5.3 Quick look up in the TEI

Quick look up in the TEI Guidelines. TEI-Look up