public virtual void SaveAs(string fullName, Encoding encoding = null) { if (string.IsNullOrWhiteSpace(fullName)) { throw new ArgumentNullException(nameof(fullName)); } _fileFullName = fullName; NfPath.SaveXml(_xmlDocument, fullName, encoding); }
/// <summary> /// Writes the current in memory contents to file. /// </summary> public virtual void Save(Encoding encoding = null) { NfPath.SaveXml(_xmlDocument, _fileFullName, encoding); }