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

