Bloom.Book.Page.GetPageSelectorXPath C# (CSharp) Method

GetPageSelectorXPath() public static method

public static GetPageSelectorXPath ( XmlDocument pageDom ) : string
pageDom System.Xml.XmlDocument
return string
        public static string GetPageSelectorXPath(XmlDocument pageDom)
        {
            //    		var id = pageDom.SelectSingleNodeHonoringDefaultNS("/html/body/div").Attributes["id"].Value;
            var id = pageDom.SelectSingleNode("/html/body/div").Attributes["id"].Value;
            return string.Format("/html/body/div[@id='{0}']", id);
        }