| Author |
JAXB - Ordering of elements in generated XML
|
Sahil Dave
Greenhorn
Joined: Nov 10, 2010
Posts: 11
|
|
Hello
I am using JAXB to marshall an object into XML. It looks like JAXB generates the XML with elements in alphabetical order.
Is there a way in which I can restrict the generated XML to have elements in the same order as the XSD?
Thanks
|
Sahil
|
 |
Pallav Bora
Ranch Hand
Joined: Oct 13, 2009
Posts: 73
|
|
|
try using "sequence" element
|
 |
 |
|
|
subject: JAXB - Ordering of elements in generated XML
|
|
|