Like woodboring beetles, leaf miners are protected from many predators and plant defences by feeding inside a leaf, eating its tissues. It eats only the layers that have the least cellulose. Also, when attacking "Quercus robur" (English oak), they feed on tissues with lower levels of tannin. Tannin is a chemical produced in abundance by the tree. It is not edible.