Inserting Header at different position in a file

I would like to hear your directions on how to Insert theses tag </TITLE> and <TEXT> at a given position in 1000 of text files.

My Files look like as

samplefile1.txt

<DOC>
<DOCNO>3_September_2012</DOCNO>
<TITLE>
... ... ... .... ... .. .. .. ... .. .. .... 
</TITLE>
<TEXT>
. .............. ... .... ... ... ... .... ...... ... ... .. .......  .. .... ... ........ ... .. ... .. .. .. .... .. ... ... ..... .. ....  ...... .... ..... ..... ... ...... .. ..... ... .. ....... .. .... .....  ..... .... .. ... ... .. ..... ... ... ...... .. .... .... ... .....  .... ... .... .. ... .... .. .... .. .. ..... .. ..... ... .....  ........ .... ..    ..... ... ... ... ... ...... ... ... .. .... ....... ..  ... .. ...... ..    ... ..... ... .... .... .. .. .... ....... .. .....  .... .... ... .. ... .. .... ... .. .. ... ... .... ... .. .... ... ...  .. .... ... .... .... .. .

</TEXT>
</DOC>

samplefile2.txt

<DOC>
<DOCNO>1_March_2014</DOCNO>
<TITLE>
........ .. ..... ... .. ....... ..... .. ...... ..
.. .... ... .. .........
.. .. .... .... .. ..... ..
</TITLE>
<TEXT>
..... ... .... .. .... .. .. ..... ... ...... .... ...... ... .. ..  ... ...... .. ..... ...... ... .... .. .. .... .... .. .... ... ... ..  ..... .. .... .... ..... ..... .... ... .. .. .. .... ... ... ..... ...  .... .. .... ... .. ... .. .... ........... . .. ..... . . ...... .....  ... .... .... . ..... .... .... ..
.... ..... ......... ........ ... ..... .. ...... ........ .. .... ....  .... ......... .. .......... .. .... ..... .... .. ..... .......... ....  ..... .... ..... ... .... .. ....... .. ..... ...... .... .. ..... ...  .... .. ..... .... ..... ... ..... .. ... . ... ... .... .. ......  ...... .. .... ..... ..... .. ... .... .. .. .... ...... ..... .......
</TEXT>
</DOC>

samplefile3.txt

<DOC>
<DOCNO>10_September_2012</DOCNO>
<TITLE>
... .. .. ...... ... ... .... ..... ... .. . .. .... .. .... .. .. ... ..
 ......... ... .. ..... .... .... .. ... .. ...... .. .. ..... .. ... ...
</TITLE>
<TEXT>
..... ......... ... .... ..... ... .. ..... .... .... .. ... .. ......  .. .. ... .. .. ... ... .. ... .... ... .. .. .. ...... .. .. ..... ...  .. ... .. ....... .... ..... .. ... ... ... ... .. ... ... .... .. .. ..  ... ... .. .. ... ...... .... ..... .... .. ... .. ..... .. ... ... ..  .. ..... ..... .. .... .. ... . ..... .. ...... .. .... .... .....  ........ .. ..... ..... .. ..... ... ...... .. ... .... .. .......  ........ ... .... .. ...... ..... .... .... ..... .... .... .... .....  .... .. ....... ..... .. ... .. .... . ..... ... .... ... .... ....  ..... .. ..... .... ... ... ... ... .. ... .... ......... ... .. .. ..  .. .. .... ... </TEXT>
</DOC>

Please explain why the suggestions in posts #8 and #9 your earlier thread: Insert Text after one, two, three lines & so on.. did not already answer this question???