Thanks, Keith. That was exactly it. 

> -----Original Message-----
> From: Keith Visco [mailto:kvisco@;intalio.com]
> Sent: Monday, October 21, 2002 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Bind-XML Doesn't Change Element Name When
> Marshalling
> 
> 
> 
> Greg,
> 
> Make sure you are not using one of the static marshal methods, or your
> mapping file will be ignored.
> 
> Make sure the marshal method you call only takes one argument.
> 
> --Keith
> 
> "Close, Gregory F (Elemental Solutions)" wrote:
> > 
> > Using the supplied Person example, as I understand it, the 
> bind-xml element
> > should cause the "name" attribute, through its accessors, 
> to map to the XML
> > element "moniker":
> > 
> >    <class name="com.eds.castortest.Person" auto-complete="false">
> >          <field name="moniker" type="java.lang.String" 
> get-method="getName"
> > set-method="setName">
> >                <bind-xml name="moniker" node="element" />
> >          </field>
> >    </class>
> > 
> > When unmarshalling, this works fine - getName gets called 
> with an argument
> > that is specified by an XML element "moniker". However, 
> when marshalling,
> > the value is always saved as the XML element "name".
> > 
> > Am I misunderstanding the way this should work, or is this a bug?
> > 
> > Thanks,
> > 
> > Greg Close
> > 
> > -----------------------------------------------------------
> > 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
> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to