generate markup that's valid xml