generalized code for atom and  tei

enables reuse of code across collections.