Okay. The problem is that you want to add a prefix (at the mapping
level) for a class mapping which is defined at the root level. Castor
does support the 'location' attribute on the <field> mapping, but that
won't be of any help to you.

I guess you will have to create a container class named mapped to user
that will be able to store either of the other obects. If you started
with an XML schema, you could use a <choice> construct to express this.

Werner

davecass wrote:
> 
> 
> Werner Guttmann wrote:
>> Is that within one XML document instance, or are we talking about
>> separate XML documents that need to be unmarshalled over a period of time
>> ?
>>
> 
> They are separate xml docs over a period of time.
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to