public string GetMediaType(string ObjectFullPath)
{
XmlDocument doc = ((SpreadsheetDocument)this._document).DocumentManifest.Manifest;
XmlNode node = doc.SelectSingleNode ("/manifest:manifest",this._document.NamespaceManager );
foreach(XmlNode nodeChild in node.ChildNodes )
{
//XmlNode Entry = nodeChild.SelectSingleNode ("@manifest:file-entry",this._document.NamespaceManager);
XmlNode FullPath = nodeChild.SelectSingleNode ("@manifest:full-path",this._document.NamespaceManager);
if (FullPath.InnerText ==ObjectFullPath)
{
XmlNode MediaType = nodeChild.SelectSingleNode ( "@manifest:media-type",this._document.NamespaceManager);
if (MediaType!=null && MediaType.InnerText !="")
return MediaType.InnerText ;
}
}
return null;
}