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