Hi!
Can I have my super type objects to include a field of abstract type that is
nillable="true".
If the object of an abstract object it is not set, I get an exception while
unmarshalling: [org.xml.sax.SAXParseException: cvc-type.2: The type
definition cannot be abstract for element Content.]
xsd is like following (marsalling A):
<xsd:complexType name="AType">
<xsd:sequence>
<xsd:element name="Content" type="p:C" nillable="true" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="A" type="p:AType" />
<!-- CS ABSTRACT CONTENT -->
<xsd:complexType name="C" abstract="true" />
--
View this message in context: http://old.nabble.com/Null-and-abstract-tp26942526p26942526.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.