generates text dynamically from an xml file