The problem is that often the schema is like:
<xs:complexType>
<xs:sequence>
<xs:element name=a type=t />
<xs:element name=b type=t />
</xs:sequence>
</xs:complexType>
and therefore the interface will look like:
Foo {
T getA();
T getB();
}
and you should be able to say:
Foo f1,f2;
f1.setB( f2.getA() );
And if getA() returns an element, this doesn't work.
regards,
--
Kohsuke KAWAGUCHI 408-276-7063 (x17063)
Sun Microsystems kohsuke.kawaguchi_at_sun.com