Hi,
I am using spring castor marshalling . In the generated xml , for enum types
xmlns attribute is not coming . Its coming for other primitive types
Please find the mapping snippet below. queryFilter is an enum type 
<class
                name="com.test.gen.common.SearchRequestType"
                access="shared">
                <map-to xml="SearchRequestType"
ns-uri="http://www.wsgc.com/schemas/WSI/DS/Common/v1.0";
                        element-definition="true" />
                <field name="queryFilter"
                        type="com.test.gen.common.QueryFilterType"
                        required="true"  >
                        <bind-xml name="QueryFilter" node="element"  />
                </field>
                <field name="conceptCode" type="java.lang.String" 
required="true">
                        <bind-xml name="ConceptCode" node="element" />
                </field>
</class>


<class
                name="com.test.gen.common.QueryFilterType"
                access="shared" verify-constructable="false">
                <map-to xml="QueryFilterType"
ns-uri="http://www.wsgc.com/schemas/WSI/DS/Common/v1.0";
                        element-definition="false" />
        </class>



-- 
View this message in context: 
http://old.nabble.com/Castor-marshalling-xmlns-not-coming-for-enum-type-tp32774984p32774984.html
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to