Hi,
first thing I should say that i'm a very happy user of scalaxb, I'm using it for a couple of SOAP WS and works fine.
But I had this trouble, when I have both minOccurs=0 and nillable in xsd scalaxb fails to compile.. for example in this piece of xsd
<complexType name="GetProviderResponse">
<all>
<element name="provider" minOccurs="0" type="pst:Provider" nillable="true"/>
</all>
</complexType>
i get this error:
value nilOption is not a member of scala.xml.Node
case node: scala.xml.Node => Right(mio.portaone.GetProviderResponse((node \ "provider").headOption map { _.nilOption map { scalaxb.fromXML[mio.Provider](_, scalaxb.ElemName(node) :: stack) }}))
removing nillable="true" from xsd works fine
cheers
Andrea