changed reading of XML to FileInputStream