Sorry it took so long.. I have added bug number *CASTOR-2264<http://jira.codehaus.org/browse/CASTOR-2264>
*Kind regards, Roy On Jan 15, 2008 11:46 PM, Werner Guttmann <[EMAIL PROTECTED]> wrote: > Hi, > > did I miss it, or have you not created a JIra issue for this yet ? > > Regards > Werner > > Roy van der Kuil wrote: > > Hmm.. never mind.. I have found a solution that works for me now... I > > changed mixed='1' to mixed='true'.. > > It still may be a bug though... > > > > Kind regards, > > Roy > > > > On Jan 7, 2008 2:51 PM, Roy van der Kuil < [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Hi all, > > > > I have been struggeling for a little while now with castor to create > > classfiles for a 'mixed=1' element. > > The xsd I have looks like: > > <?xml version="1.0" encoding="UTF-8"?> > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > > <http://www.w3.org/2001/XMLSchema-instance>"> > > <xs:element name="description-list"> > > <xs:complexType> > > <xs:sequence> > > <xs:element ref="description" > > minOccurs="1" maxOccurs="1"/> > > </xs:sequence> > > </xs:complexType> > > </xs:element> > > <xs:element name="description"> > > <xs:complexType mixed="1"> > > <xs:attribute name="short" type="xs:string" > > use="required"/> > > </xs:complexType> > > </xs:element> > > </xs:schema> > > > > and a sample xml file is: > > Working: > > <description-list > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:noNamespaceSchemaLocation="..."> > > <description short="short"></description> > > </description-list> > > > > Not working: > > <description-list xmlns:xsi=" > > http://www.w3.org/2001/XMLSchema-instance > > <http://www.w3.org/2001/XMLSchema-instance>" > > xsi:noNamespaceSchemaLocation="..."> > > <description short="short">long</description> > > </description-list> > > > > > > In the Description.java class there seems to be missing the 'long' > > description field. I used xmlspy to validate the xml and xsd. Is > > there a way to get this working? I am probably missing something so > > forgive me if this has been answered before or if it is really > > something like a beginners thing.. It has been a while since I have > > actively used castor.. > > > > Kind regards, > > Roy > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > >

