/// <summary> /// Creates the XML document that is sent to TED. /// </summary> /// <returns></returns> public XDocument CreateForm() { return(new XDocument( new XDeclaration("1.0", "utf-8", null), TedHelpers.Element("TED_ESENDERS", new XAttribute(XNamespace.Xmlns + nameof(TedHelpers.n2016), TedHelpers.n2016), new XAttribute(XNamespace.Xmlns + nameof(TedHelpers.xs), TedHelpers.xs), TedHelpers.LoginPart(_notice, _eSenderLogin, _tedESenderOrganisation, _tedContactEmail), NoticeBody()))); }
/// <summary> /// Creates the XML document that is sent to TED. /// </summary> /// <returns></returns> public XDocument CreateForm() { return(TedHelpers.CreateTedDocument( TedHelpers.LoginPart(_notice, _eSenderLogin, _tedESenderOrganisation, _tedContactEmail), NoticeBody())); }