-
- Notifications
You must be signed in to change notification settings - Fork 233
Open
Labels
adding-declarationsIssues related to adding non-content declarations to XML outputIssues related to adding non-content declarations to XML outputmost-wantedTag to indicate that there is heavy user +1'ing actionTag to indicate that there is heavy user +1'ing actionpr-neededFeature request for which PR likely needed (no active development but idea is workable)Feature request for which PR likely needed (no active development but idea is workable)
Description
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:
<Ingredients> <eggs xmlns="">1</eggs> <wstxns1:bananas xmlns:wstxns1="urn:produce:fruit"> 6 </wstxns1:bananas> </Ingredients>This works, but I'm missing a way to specify the namespace prefix to use, so I could get
<Ingredients> <eggs xmlns="">1</eggs> <fruit:bananas xmlns:fruit="urn:produce:fruit"> 6 </wstxns1:bananas> </Ingredients>An additional argument to @JacksonXmlProperty would be the obvious way.
aaime, jam01, AlexeyLevin, kornada, romeoro and 13 more
Metadata
Metadata
Assignees
Labels
adding-declarationsIssues related to adding non-content declarations to XML outputIssues related to adding non-content declarations to XML outputmost-wantedTag to indicate that there is heavy user +1'ing actionTag to indicate that there is heavy user +1'ing actionpr-neededFeature request for which PR likely needed (no active development but idea is workable)Feature request for which PR likely needed (no active development but idea is workable)