Added to functionality to deal with xml files.