public XmlElement GetXml()
{
XmlDocument creationXmlDocument;
XmlElement retVal;
creationXmlDocument = new XmlDocument();
retVal = creationXmlDocument.CreateElement("SignedDataObjectProperties", XadesSignedXml.XadesNamespaceUri);
if (this.dataObjectFormatCollection.Count > 0)
{
foreach (DataObjectFormat dataObjectFormat in this.dataObjectFormatCollection)
{
if (dataObjectFormat.HasChanged())
{
retVal.AppendChild(creationXmlDocument.ImportNode(dataObjectFormat.GetXml(), true));
}
}
}
if (this.commitmentTypeIndicationCollection.Count > 0)
{
foreach (CommitmentTypeIndication commitmentTypeIndication in this.commitmentTypeIndicationCollection)
{
if (commitmentTypeIndication.HasChanged())
{
retVal.AppendChild(creationXmlDocument.ImportNode(commitmentTypeIndication.GetXml(), true));
}
}
}
if (this.allDataObjectsTimeStampCollection.Count > 0)
{
foreach (TimeStamp timeStamp in this.allDataObjectsTimeStampCollection)
{
if (timeStamp.HasChanged())
{
retVal.AppendChild(creationXmlDocument.ImportNode(timeStamp.GetXml(), true));
}
}
}
if (this.individualDataObjectsTimeStampCollection.Count > 0)
{
foreach (TimeStamp timeStamp in this.individualDataObjectsTimeStampCollection)
{
if (timeStamp.HasChanged())
{
retVal.AppendChild(creationXmlDocument.ImportNode(timeStamp.GetXml(), true));
}
}
}
return retVal;
}
#endregion