Moved XML logic from SearchViewController to custom class.