Hello all,
        I am having a problem in writing a schema
For generating java classes from XML

I want to create a class which contains 'generic objects', such As you
can find with java Collections.

So, I am defining an element like this

<xsd:element name="myContainer">
      <xsd:complexType>
         <xsd:sequence>
                <xsd:element name="genericValue" type="xsd:anyType"
minOccurs="0" maxOccurs="unbouned"/>
            </xsd:sequence>
      </xsd:complexType>
</xsd:element>

However, when I try to retrieve the values that I have put in, I always
Receive a String like   <value type="string"  schema..... />

After checking some docs, I have checked that castor generates the type
AnyType...

Issue is, If I add to 'myContainer' an object of type 'java.util.Date',
I cant retrieve the Date that I have put in, I always get back that
String  <value type../>

Can anyone suggest me how can I overcome my problem?

Thanks and regard
        marco
     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