We calculate target fragmentation in pp→nX and γp→nX reactions in the meson cloud picture of the nucleon. The pp→nX reaction is used to fix the pnπ+ form factor for two different models. We take into account the possible destruction of the residual neutron by the projectile. Using the form factor from the hadronic reaction we calculate photoproduction and small xBj​ electroproduction of forward neutrons at HERA. In photoproduction we observe about the same amount of absorption as in the hadronic reaction. For deep inelastic events screening is found to be negligible. The signature of this color transparency on the nucleon is a shift of the dN/dEn​ distribution to higher neutron energies for photofragmentation