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

			if (this.commitmentTypeQualifierCollection.Count > 0)
			{
				foreach (CommitmentTypeQualifier commitmentTypeQualifier in this.commitmentTypeQualifierCollection)
				{
					if (commitmentTypeQualifier.HasChanged())
					{
						retVal.AppendChild(creationXmlDocument.ImportNode(commitmentTypeQualifier.GetXml(), true));
					}
				}
			}

			return retVal;
		}
		#endregion