Bookstore.BookSearcher.BookSearcherUI.GetTitle C# (CSharp) Method

GetTitle() static private method

static private GetTitle ( XmlDocument queryDocument ) : string
queryDocument System.Xml.XmlDocument
return string
        static string GetTitle(XmlDocument queryDocument)
        {
            string xpathQueryForTitle = "/query/title";
            XmlNode titleNode = queryDocument.SelectSingleNode(xpathQueryForTitle);
            string title = null;
            if (titleNode != null)
            {
                title = titleNode.InnerXml.Trim().ToLower();
            }

            return title;
        }
    }