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"> <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" 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

