Paul Michael Reilly wrote:
> In XML-RPC there is a nasty problem in the <value> element. It can have
> defaulted string data, i.e. both
>
> <value>This is the default string value</value>
>
> and
>
> <value><string>This is non-defaulted string value.</string></value>
>
> can be valid input.
>
> I have successfully modeled this (no validation errors) using the schema:
>
> <xsd:complexType name="ValueType" mixed="true">
> <xsd:choice>
> ...
> <xsd:element name="int" type="xsd:int" nillable="true"
> minOccurs="0" maxOccurs="1"/>
> <xsd:element name="string" type="ASCIIString" minOccurs="0"
> maxOccurs="1"/>
> ....
> </xsd:choice>
> </xsd:choice>
>
> but I have not figured out how to access the default text using JAXB.
Could you illustrate how one defaults text? The above schema does
not contain the defaulted text in it.
-Joe Fialli, Sun Microsystems
> Any suggestions?
>
> Thanks,
>
> -pmr
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net