If we are using this we don't want loop the xml nodes.
XmlDocument xmldocinner = new XmlDocument();
xmldocinner.Load(MetaDataRepository + "/" + metadataMappedKey);
<pre lang="cs">var root = xmldocinner.GetElementsByTagName("LastModified");
var lastmodifieddate = root[0].InnerText;</pre>