I tried to use source generator to create a class that contains hashtable member variable. However it failed:
1) Here is my schema file (policy-store.xsd): <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="../xsd/config/policy"> <element name="RMPolicy-store"> <complexType> <sequence> <element ref="policy" minOccurs="1" maxOccurs="unbounded"/> </sequence> </complexType> </element> <element name="policy"> <complexType> <sequence> <element ref="thresholdPolicy" minOccurs="1" maxOccurs="unbounded"/> </sequence> </complexType> </element> ... </schema> 2) Here is my binding file(policy-store-binding.xml): <binding xmlns="http://www.castor.org/SourceGenerator/Binding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.castor.org/SourceGenerator/Binding defaultBinding="element"> <elementBinding name="/RMPolicy-store"> <member name="policy" collection="hashtable"/> </elementBinding> </binding> 3) Then I run source generator as below: C:\castor-1.0M1\sourcegen>sourceGen -i policy-store.xsd -binding-file policy-store-binding.xml -package test 4) Then I opened generated RMPolicyStore.java, it shows: public class RMPolicyStore implements java.io.Serializable { ... private java.util.Vector _policyList; ... } while What I expected should be "private java.util.Hashtable _policies" Can anyone tells me where I am wrong? Thank you ~Bin __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

