Replace the numeric type with a name (fresh or salt) and change the density value into an xml attribute. The type is the primary information here, while the density value is optional.