xml escape for types