Fixed file input issue in XML and Plain Text repository constructors.