Ralf,
  You are right.  I added both and it worked fine.  
Thanks for the help,
Jason 

-----Original Message-----
From: Ralf Joachim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 28, 2005 9:49 AM
To: [email protected]
Subject: Re: [castor-user] How do I get around a inconsistent collection in an 
xml document

Hi Jason,

isn't it possible to allow both, featureId and platformId, to apear in your 
document. If you work with mapping it should work if you add an additional 
property platformId. If you generate you source with SourceGen you may need to 
change your xsd to allow both to apear.

Ralf


Green, Jason M. schrieb:
> The subject may not do well to explain, so I hope the xml example will do.
> <MDADocument>
>     <defenseDesignDocument>
>         <defenseDesign>           
>         <properties>
>                    <assetList>
>                            <properties>                      
>                                 <asset>
>                                         
> <properties>                              
>                                                 <defendedEntity>
>                                                         
> <featureId>-6048061182588210046</featureId>
>                                                         </defendedEntity>
>                                                 </properties>
>                                 </asset>
>                                 <asset>
>                                         
> <properties>                              
>                                                 <defendedEntity>
>                                                 
> <platformId>-6048061182588210036</platformId>
>                                                         </defendedEntity>
>                                                 </properties>
>                                 </asset>
>                         <asset>
>                                         
> <properties>                              
>                                                 <defendedEntity>
>                                                         
> <featureId>-6048061182588210042</featureId>
>                                                         </defendedEntity>
>                                                 </properties>
>                                 </asset>
>                                 <asset>
>                                         
> <properties>                              
>                                                 <defendedEntity>
>                                                 
> <featureId>-6048061182588210045</featureId>
>                                                         </defendedEntity>
>                                                 </properties>
>                                 </asset>
>                 </properties>
>         </assetList>
> </properties>
> </defenseDesign>
> </defenseDesignDocument>
> </MDADocument>
> 
> The hierarchy of the asset field makes it appear that it would a 
> collection of assets with the exception of the featureId/platformId .
> Is there a way to get a different field name instead of looking for 
> that exact name?  I code for the featureId, so when it gets to the 
> platformId, I get an error.  Please let me know asap,
> 
> Thanks,
> Jason
> 

-- 

Syscon Ingenieurbüro für
Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
D-72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Email: [EMAIL PROTECTED]
Web:   www.syscon-world.de

-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the 
following address:

[EMAIL PROTECTED]
-------------------------------------------------


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to