I don't know exactly what DTD "an xml version of the tei dtd" is. If
you are using the TEI Lite XML DTD (-//TEI//DTD TEI Lite XML ver.
1.3//EN), then this is a known problem most recently reported by Ingo
Mittendorf in 2001-07. If you are using a pizza-chef baked version of
some other view of the TEI DTD set, then I don't know for sure that
it's the same problem, as I haven't tested that.
The problem is basically that the XML version requires a HEAD element
where the regular version(s) consider HEAD optional. Lou Burnard
suggested an excellent temporary hack solution back on 2001-07-31,
which expanded slightly would be the following:
<head><!-- remove me when DTD fixed !! --></head>
<p> ... </p>