Microsoft.Xades.SigPolicyQualifiers.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("SigPolicyQualifiers", XadesSignedXml.XadesNamespaceUri);

			if (this.sigPolicyQualifierCollection.Count > 0)
			{
				foreach (SigPolicyQualifier sigPolicyQualifier in this.sigPolicyQualifierCollection)
				{
					if (sigPolicyQualifier.HasChanged())
					{
						retVal.AppendChild(creationXmlDocument.ImportNode(sigPolicyQualifier.GetXml(), true));
					}
				}
			}

			return retVal;
		}
		#endregion