Framework for xml files