I have an object that needs to be serialised as XML, which contains the following field:
List<String> tags = new List<String>();
I'd suggest changing the
List<String> to a
List<Tag>, where Tag is a domain object that essentially just contains a String. Then you say:
and you get exactly what you want. This avoids having to roll your own Converter.