public string GetPage(string pageName, string sectionId)
{
var pageId = String.Empty;
try
{
XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(GetPageScopeHierarchy(sectionId));
XmlNode node = xDoc.SelectSingleNode(String.Format("//one:Page[@name='{0}']", pageName), GetNSManager(xDoc.NameTable));
if (node != null && node.Attributes != null)
pageId = node.Attributes["ID"].Value;
}
catch (Exception e)
{
throw new ApplicationException("Error in GetPage: " + e.Message, e);
}
return pageId;
}