Hi, It seems that you are not using the SourceGenerator but rather the introspection or the mapping so you might want to take a look at the castor.properties file:
# Defines the NodeType for use with Java primitive types (int, long, # boolean, etc). This value is only used by the Introspector. # valid values are either "attribute" or "element". By default # all primitives are marshalled as attributes. Simply uncomment # the following line to change the NodeType to element. # #org.exolab.castor.xml.introspector.primitive.nodetype=element Hope this helps, Arnaud -> -----Original Message----- -> From: xu zhiling [mailto:[EMAIL PROTECTED]] -> Sent: Thursday, November 29, 2001 1:00 AM -> To: [EMAIL PROTECTED] -> Subject: [castor-dev] unmarshal-marshal not match -> -> -> I'm using Castor to do marshal and unmarshal. -> -> normally,my java objects marshal to the following XML,it's correct. -> <?xml version="1.0"?> -> <ProcessTemplate id="template" name="leave" startType="manual" -> displayName="leave" organizationName="juyee" description="leave" -> limitInstanceNumber="false"> -> <StartActivity id="start" outTransitionIds="transition1"/> -> <Transition id="transition1" name="proposer" -> description="proposer" fromNodeId="start" toNodeId="activity1"/> -> <Transition id="transition2" name="service manager" -> description="service manager" fromNodeId="activity1" -> toNodeId="activity2"/> -> <Transition id="transition3" name="manager" -> description="manager" fromNodeId="activity2" toNodeId="activity3"/> -> <Transition id="transition4" name="end" description="end" -> fromNodeId="activity3" toNodeId="end"/> -> <InternalActivity id="activity1" name="proposer" -> displayName="proposer" description="proposer" -> inTransitionIds="transition1" outTransitionIds="transition2" -> priority="0"/> -> <InternalActivity id="activity2" name="service manager" -> displayName="service manager" description="service manager" -> inTransitionIds="transition2" outTransitionIds="transition3" -> priority="0"/> -> <InternalActivity id="activity3" name="manager" -> displayName="manager" description="manager" -> inTransitionIds="transition3" outTransitionIds="transition4" -> priority="0"/> -> <EndActivity id="end" inTransitionIds="transition4"/> -> </ProcessTemplate> -> -> -> -> but sometimes after unmarshal then marshal again,the XML becomes : -> -> <?xml version="1.0"?> -> <processTemplate> -> <name>leave</name> -> <displayName>leave</displayName> -> <description> -> leave</description> -> <id>template</id> -> <organizationName>juyee</organizationName> -> <internalActivityCount>0</internalActivityCount> -> <joinCount>0</joinCount> -> <limitInstanceNumber>false</limitInstanceNumber> -> <maxInstanceNumber>0</maxInstanceNumber> -> <subProcessCount>0</subProcessCount> -> <transitionCount>0</transitionCount> -> </processTemplate> -> -> why can this happen and how can I solve this problem? -> -> ----------------------------------------------------------- -> If you wish to unsubscribe from this mailing, send mail to -> [EMAIL PROTECTED] with a subject of: -> unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
