private List <JobOpportunity> ProcessResponse(XmlDocument xmlDocument)
        {
            List <JobOpportunity> jobOpportunities = new List <JobOpportunity>();

            XmlNode     results          = xmlDocument.SelectSingleNode("/ResponseJobSearch/Results");
            XmlNodeList jobSearchResults = results.SelectNodes("JobSearchResult");

            foreach (XmlNode jobSearchResult in jobSearchResults)
            {
                XmlNode jobTitleNode    = jobSearchResult.SelectSingleNode("ONetFriendlyTitle");
                XmlNode companyNode     = jobSearchResult.SelectSingleNode("Company");
                XmlNode descriptionNode = jobSearchResult.SelectSingleNode("DescriptionTeaser");
                XmlNode locationNode    = jobSearchResult.SelectSingleNode("Location");
                XmlNode postedDateNode  = jobSearchResult.SelectSingleNode("PostedDate");
                XmlNode similarJobsNode = jobSearchResult.SelectSingleNode("SimilarJobsURL");

                string jobTitle                = jobTitleNode.InnerText;
                string description             = descriptionNode.InnerText;
                string company                 = companyNode.InnerText;
                string location                = locationNode.InnerText;
                string similarJobOpportunities = similarJobsNode.InnerText;

                JobOpportunity jobOpportunity = new JobOpportunity(jobTitle, description, company, location, similarJobOpportunities);

                jobOpportunities.Add(jobOpportunity);
            }

            return(jobOpportunities);
        }
        private List<JobOpportunity> ProcessResponse(XmlDocument xmlDocument)
        {
            List<JobOpportunity> jobOpportunities = new List<JobOpportunity>();

            XmlNode results = xmlDocument.SelectSingleNode("/ResponseJobSearch/Results");
            XmlNodeList jobSearchResults = results.SelectNodes("JobSearchResult");

            foreach (XmlNode jobSearchResult in jobSearchResults) {
                XmlNode jobTitleNode = jobSearchResult.SelectSingleNode("ONetFriendlyTitle");
                XmlNode companyNode = jobSearchResult.SelectSingleNode("Company");
                XmlNode descriptionNode = jobSearchResult.SelectSingleNode("DescriptionTeaser");
                XmlNode locationNode = jobSearchResult.SelectSingleNode("Location");
                XmlNode postedDateNode = jobSearchResult.SelectSingleNode("PostedDate");
                XmlNode similarJobsNode = jobSearchResult.SelectSingleNode("SimilarJobsURL");

                string jobTitle = jobTitleNode.InnerText;
                string description = descriptionNode.InnerText;
                string company = companyNode.InnerText;
                string location = locationNode.InnerText;
                string similarJobOpportunities = similarJobsNode.InnerText;

                JobOpportunity jobOpportunity = new JobOpportunity(jobTitle, description, company, location, similarJobOpportunities);

                jobOpportunities.Add(jobOpportunity);
            }

            return jobOpportunities;
        }