jaxb binding to override the datatype List<Object> to String

tidooriedew

New Member
jaxb unmarshals \[code\] <xs:complexType name="Test" mixed="true"> <xs:sequence> <xs:any namespace="http://www.w3.org/1999/xhtml" minOccurs="0"/> </xs:sequence> <attributes.../> </xs:complexType>\[/code\]as \[code\]protected List<Object> content\[/code\];My jxb bindings file is :\[code\] <jxb:bindings node="//xs:complexType[@name='Test']"> <jxb:property> <jxb:baseType name="java.lang.String"></jxb:baseType> </jxb:property> </jxb:bindings>\[/code\]and this makes the java equivalent as\[code\]protected List<String> content;\[/code\]Is there a way I can get it to be \[code\]protected String content\[/code\] ?
 
Back
Top