There's a Castor problem about the order of the marshalled XML elements.

Hi,

I use unmarshal/marshal of Castor 1.02 to bind the XML.

And then the generation of xml must be validated by dtd document.

Please see the part of DTD document below.

<?xml version="1.0" encoding="UTF-8"?>

<!ELEMENT WV-CSP-Message (Session)>

<!ATTLIST WV-CSP-Message xmlns CDATA #REQUIRED>

<!ELEMENT Session (SessionDescriptor, Transaction+)>

<!ELEMENT SessionDescriptor (SessionType, SessionID?)>

<!ELEMENT SessionType (#PCDATA)>

<!ELEMENT SessionID (#PCDATA)>

There's a problem about the order of the marshalled XML elements.

I'd tried to use a mapping file Castor to generate the XMLin the order, but I worked without result.

Please assist me in solving the problem.

Many thanks for your help.

Regards,

Vincent

[872 byte] By [vincenthuaa] at [2007-10-3 4:49:49]
# 1
What is the order of the marshalled XML elements? http://www.castor.org/xml-faq.html#What-is-the-order-of-the-marshalled-XML-elements?
dvohra09a at 2007-7-14 22:54:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...