users@jaxb.java.net

Using mixed mode content to handle XML-RPC default values

From: Paul Michael Reilly <pmr_at_starbak.net>
Date: Tue, 24 Aug 2004 14:52:04 -0400

I am attempting to deal with the XML-RPC value element, for which both
of the following are valid:

...<value>Implicit string value</value>...
...<value><string>Explicit string element value</string></value>...

I attempted to use the following schema fragment to model this
behavior:

<xsd:complexType name="ValueType" mixed="true">
  <xsd:choice>
    ...
    <xsd:element name="string" .../>
    ...
</xsd:complexType>

but the generated class does not provide a way to access the implicit
string value, so I must be misunderstanding something.

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