in the way of vs with a view to

in the way of

prep
  • In or into a position of being likely to obtain, to attain, or to achieve. 

  • Similar to; as an instance of; as a kind of. 

  • In relation to; in connection with; with respect to. 

with a view to

prep
  • With the intention or goal of (followed by a noun or the infinitive). 

How often have the words in the way of and with a view to occurred in a corpus of books? (source: Google Ngram Viewer )