Keith, your hint was useful, with the class descriptor it looks as expected:
<?xml version="1.0"?> <person in="M10356/7838" id="6738223"> <fname>Sam Flintstone</fname> <age>56</age> </person> Thank you, Thomas Keith Visco wrote: > I've seen this a number of times before... > > Did you compile the generated class descriptors, or did you use the > -nodesc > option? > > If you are using the -nodesc option, then you'll probably want to not > use that > option so that the descriptors can get generated... > > If you weren't using that option, then make sure you compiled your > ClassDescriptors > that were generated along side your classes...Descriptor classes do not > get compiled automatically...so you must compile them. > > Thanks, > > --Keith > > Thomas Paradies wrote: > > > > while playing with sourcegen i've used the following test schema to > > generate a class Person ... > > > > <?xml version="1.0" encoding="UTF-8"?> > > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <xsd:element name="person"> > > <xsd:complexType> > > <xsd:sequence> > > <xsd:element name="fname" type="xsd:string"/> > > <xsd:element name="age" type="xsd:int" minOccurs="0" maxOccurs="1"/> > > </xsd:sequence> > > <xsd:attribute name="in" type="xsd:string" use="required"/> > > <xsd:attribute name="id" type="xsd:int" use="required"/> > > </xsd:complexType> > > </xsd:element> > > </xsd:schema> > > > > ... an instance of Person marshalled to screen looks as follows: > > > > <?xml version="1.0"?> > > <person age="56" id="6738223"> > > <in>M10356/7838</in> > > <fname>Sam Flintstone</fname> > > </person> > > > > what's wrong with the int types and the attributes? > > > > comments are welcome, > > Thomas > > > > ----------------------------------------------------------- > > 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
