Which version of Castor are you using?
--Keith Gergely Gati wrote: > > Hi, > > I'm using Castor XML mapping. > I tried to map an XML attribute to a constructor argument as described > here: > > http://castor.exolab.org/xml-mapping.html#constructor-args > > But when I put an entry like this to my mapping file, I get the > following error: > > <field name="foo" set-method="%1" get-method="getFoo" type="string"> > <bind-xml node="attribute"/> > </field> > > ValidationException: "%1" is not a valid NMToken.; > - location of error: XPATH: mapping/class/field/@set-method > at > org.exolab.castor.xml.validators.NameValidator.validate(Unknown Source) > > What am I doing wrong? > > Thanks, > Gergely Gati > > ----------------------------------------------------------- > 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
