generalized XML code