public XmlElement GetXml()
{
XmlDocument creationXmlDocument;
XmlElement retVal;
creationXmlDocument = new XmlDocument();
retVal = creationXmlDocument.CreateElement("OCSPRefs", XadesSignedXml.XadesNamespaceUri);
if (this.ocspRefCollection.Count > 0)
{
foreach (OCSPRef ocspRef in this.ocspRefCollection)
{
if (ocspRef.HasChanged())
{
retVal.AppendChild(creationXmlDocument.ImportNode(ocspRef.GetXml(), true));
}
}
}
return retVal;
}
#endregion