Added method to extract text from xml files