Generalized local XML reader