internal string GetStringRepOfWorkspace()
{
// Create the xml document to write to.
var document = new XmlDocument();
document.CreateXmlDeclaration("1.0", null, null);
document.AppendChild(document.CreateElement("Workspace"));
//This is only used for computing relative offsets, it's not actually created
string virtualFileName = Path.Combine(Path.GetTempPath(), "DynamoTemp.dyn");
Utils.SetDocumentXmlPath(document, virtualFileName);
if (!PopulateXmlDocument(document))
return String.Empty;
//Now unset the temp file name again
Utils.SetDocumentXmlPath(document, null);
return document.OuterXml;
}