users@jaxb.java.net

Re: Document oriented XML Binding framework needed

From: Arek Stryjski <developer_at_krzyzowki.net.pl>
Date: Tue, 13 May 2003 10:35:31 +0200

> > I had difficulty then XML element is not present (they are optional in
> > schema). The list is empty, even there was a text inside. I will expect
that
> > then elements are optional and there is text I will get List with single
> > String not empty list.
>
> So you are saying that if I have a schema like this:
>
> <xs:element name="foo">
> <xs:complexType mixed="true">
> <xs:sequence>
> <xs:element name="optional" type="xs:int" minOccurs="0" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>
> and an instance like this:
>
> <foo> text only! </foo>
>
> then you'll unmarshal an empty list?

Yes.
I will try to extract this from my program as test case this week and I will
sand it to you.



Regards

Arek