Allow custom prefixes for Namespaces (original) (raw)
This code:
public class Ingredients {
public final String eggs="12";
@JacksonXmlProperty(namespace = "urn:produce:fruit")
public final String bananas="6";
...
}produces this xml when serialised:
1 6This works, but I'm missing a way to specify the namespace prefix to use, so I could get
1 6An additional argument to @JacksonXmlProperty would be the obvious way.