Microsoft.Xades.NoticeNumbers.GetXml C# (CSharp) Метод

GetXml() публичный Метод

Returns the XML representation of the this object
public GetXml ( ) : XmlElement
Результат System.Xml.XmlElement
		public XmlElement GetXml()
		{
			XmlDocument creationXmlDocument;
			XmlElement bufferXmlElement;
			XmlElement retVal;

			creationXmlDocument = new XmlDocument();
			retVal = creationXmlDocument.CreateElement("NoticeNumbers", XadesSignedXml.XadesNamespaceUri);

			if (this.noticeNumberCollection.Count > 0)
			{
				foreach (int noticeNumber in this.noticeNumberCollection)
				{
					bufferXmlElement = creationXmlDocument.CreateElement("int", XadesSignedXml.XadesNamespaceUri);
					bufferXmlElement.InnerText = noticeNumber.ToString();
					retVal.AppendChild(bufferXmlElement);
				}
			}

			return retVal;
		}
		#endregion