moving to generate xml equivalent to passed header.