Nitro group (or another strong electron withdrawing group) is required, it makes Me protons acidic enough to allow condensation proceed. Approximate procedure for this condensation
http://orgsyn.org/orgsyn/prep.asp?prep=cv5p0567 (http://orgsyn.org/orgsyn/prep.asp?prep=cv5p0567)
of course there is nothing about further reaction with hydroxylamine and dehydration to nitrile. Anyway this will not work, if there will not be electon withdrawing group on benzene ring.