Microsoft.Xades.CertRefs.GetXml C# (CSharp) Method

GetXml() public method

Returns the XML representation of the this object
public GetXml ( ) : XmlElement
return System.Xml.XmlElement
		public XmlElement GetXml()
		{
			XmlDocument creationXmlDocument;
			XmlElement retVal;

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

			if (this.certCollection.Count > 0)
			{
				foreach (Cert cert in this.certCollection)
				{
					if (cert.HasChanged())
					{
						retVal.AppendChild(creationXmlDocument.ImportNode(cert.GetXml(), true));
					}
				}
			}

			return retVal;
		}
		#endregion