users@jersey.java.net

XML Schema, JSON arrays and java List<String>

From: Robert Koberg <rob_at_koberg.com>
Date: Sun, 2 Aug 2009 14:29:08 -0700

Hi,

Is there a way to create an XML Schema so that the JAXB/Jersey JSON
Response produces an array and the XML response produces data
elements, e.g.

{
"message-keys": [
   "a.b",
   "c.d"
]
}

and

<message-keys>
   <entry>a.b</entry>
   <entry>c.d</entry>
</message-keys>

Everything I am trying is giving me a space separated value.

thanks for any help/hints,
-Rob