input parameter added "AddXMLDeclaration" which will define if "<?xml version="1.0" encoding="utf-8"?>" will present in the beginning of the file or not