//
// Author:
// Sebastien Pouliot (spouliot@motus.com)
+// Tim Coleman (tim@timcoleman.com)
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
+// Copyright (C) Tim Coleman, 2004
//
//
}
public XmlElement GetXml ()
+ {
+ return GetXml (null);
+ }
+
+ internal XmlElement GetXml (XmlDocument document)
{
if (element != null)
return element;
if (signature == null)
throw new CryptographicException ("SignatureValue");
- XmlDocument document = new XmlDocument ();
+ if (document == null)
+ document = new XmlDocument ();
+
XmlElement xel = document.CreateElement (XmlSignature.ElementNames.Signature, XmlSignature.NamespaceURI);
if (id != null)
xel.SetAttribute (XmlSignature.AttributeNames.Id, id);
return -1;
}
}
-}
\ No newline at end of file
+}