Hi,

did you compile the descriptor classes and package them with your
application JAR (including the .cdr files) ? If that's not the case,
Castor (upon marshalling) will use introspection, and that's what it
looks like.

Regards
Werner

harmengosen wrote:
> Hi,
> 
> i'm relatively new to Castor so please forgive me if the question seems
> trivial.
> 
> I have generated classes using Castor codegen v.1.2, from XSD's. When i
> create an object model using these classes and then marshall it to XML, the
> namespaces are omitted, but that is not what i want.
> This is what i get:
> 
> <Header>
> 
> and this is what i want:
> 
> <rfh:Header xmlns:rfh="..." >
> 
> I have not found a clue as to why Castor doesn't generate this namespace.
> The namespace was present in the XSD that i used to generate the classes and
> descriptorfiles from.
> 
> Am i omitting/forgetting something?
> 
> Thanks a lot for your help!

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

    http://xircles.codehaus.org/manage_email


Reply via email to