tei parser rewrite