I am not sure whats wrong with the code - it seems to do what it should 1. I guess I have to use a loop for the FileReader for some reason (will try that) It seems to return the tags for the example and template as required (guess not) Does anyone have and idea whats wrong with it ? Did I get the question wrong ? Thanks everyone!