Microsoft.Xades.CompleteRevocationRefs.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("CompleteRevocationRefs", XadesSignedXml.XadesNamespaceUri);
			if (!String.IsNullOrEmpty(this.id))
			{
				retVal.SetAttribute("Id", this.id);
			}
			if (this.crlRefs != null && this.crlRefs.HasChanged())
			{
				retVal.AppendChild(creationXmlDocument.ImportNode(this.crlRefs.GetXml(), true));
			}
			if (this.ocspRefs != null && this.ocspRefs.HasChanged())
			{
				retVal.AppendChild(creationXmlDocument.ImportNode(this.ocspRefs.GetXml(), true));
			}
			if (this.otherRefs != null && this.otherRefs.HasChanged())
			{
				retVal.AppendChild(creationXmlDocument.ImportNode(this.otherRefs.GetXml(), true));
			}

			return retVal;
		}
		#endregion