You could use an enchanting turtle, but they only have a range of... I think it was 3x3, or so.
also a brain in a jar would work
you replace one block of glass/cobble/what ever with a brain in a jar, on the animal farm or grinder side the orbs flow to the jar same as if a player was standing there so its 3 blocks away it can gather from, on the other side of the wall you can right click the jar to reclaim the xp, the jars only hold around 30 lvls worth of xp so setup a couple or grab the xp often.Does that grab XP through glass/cobble/fences?