That's not quite the schema definitions Ipertaining to the XML
snippet. We'd need to see the schema type definition for element
<homeAddress>, containing a (repeating) element with
name="LocalAddress". And I'd like to see the definition of that
element's type CompoundLocalAddress from SIDBusinessViewCommon.xsd.
But here's a couple of pointers.
Similar explicit inclusion of a schema type in an instance document's
element occurs if you instantiate a JAXB element using an object of
some (abstract) XML schema base type so that the element would have
the element tag of the base type.
Second, avoid xs:anySimpleType since this will also create multiple
references to the namespaces bound to xsi and xs, and type attributes
containing the actual type.
And you lose JAXB's advantage of having typed fields in your Java
classes so that you lose all the checks the Java compiler might do,
and for unmarshalling you'll have to handle all the conversions
yourself.
On Mon, Oct 20, 2008 at 8:13 PM, Son Nguyen <
sontrang91@...> wrote:
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...